Function at 0x10079660
Capabilities:
Check if file exists
Copy file
Get common file path
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c37fe
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6dc], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6e0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6e8], eax
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x6e4], eax
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
js 0x10079724
push str.TencentDeskUpdate_
lea eax, [ebp - 0x23c]
push eax
call esi
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
jne 0x10079716
lea eax, [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.GlobalMgr.db
lea eax, [ebp - 0x23c]
push eax
call esi
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x5f4]
push 0x10
call fcn.10073ea0
add esp, 4
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
call edi
test eax, eax
je 0x10079839
push 0x208
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.1008e420
push 0x104
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x444]
push 0x104
push eax
call fcn.10090f7e
add esp, 0x1c
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.GlobalMgrBack.db
lea eax, [ebp - 0x444]
push eax
call esi
lea eax, [ebp - 0x444]
push eax
call edi
test eax, eax
je 0x10079823
lea eax, [ebp - 0x6d4]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x6d8], eax
lea ecx, [ebp - 0x6d8]
xorps xmm0, xmm0
lea eax, [ebp - 0x23c]
push 3
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.10026cb1
push dword [ebp - 0x6d8]
lea eax, [ebp - 0x34]
push 0x21
push eax
push 0
push str.config1
push str.Profile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x6d8]
lea ecx, [ebp - 0x6d4]
cmp eax, ecx
je 0x10079810
push eax
call fcn.10095ea7
add esp, 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x5f4]
call fcn.10073a70
test eax, eax
je 0x10079839
push 0
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor eax, eax
mov dword [ebp - 0x4c0], 7
mov dword [ebp - 0x4c4], 0
mov word [ebp - 0x4d4], ax
cmp word [ebp - 0x23c], ax
jne 0x10079863
xor ecx, ecx
jmp 0x1007987f
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10079870
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x4d4]
call fcn.10001dcf
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x6dc]
add edi, 0x8c
mov ecx, edi
call fcn.100831f0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x100798d4
mov eax, dword [ecx]
jmp 0x100798d6
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x4d4]
push edx
push eax
call fcn.10001b7f
mov ecx, edi
call fcn.10082c00
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
mov dword [ebp - 0x478], 0xf
mov dword [ebp - 0x47c], 0
mov byte [ebp - 0x48c], 0
mov dword [ebp - 0x460], 0xf
mov dword [ebp - 0x464], 0
mov byte [ebp - 0x474], 0
mov dword [ebp - 0x448], 0xf
mov dword [ebp - 0x44c], 0
mov byte [ebp - 0x45c], 0
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x474]
mov ecx, edi
push eax
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x4bc]
push eax
call fcn.10083810
push dword [ebp - 0x6e4]
xor esi, esi
lea eax, [ebp - 0x45c]
cmp dword [ebp - 0x448], 0x10
cmovae eax, dword [ebp - 0x45c]
push eax
call fcn.100a0c84
push dword [ebp - 0x6e0]
test eax, eax
mov ecx, 4
lea eax, [ebp - 0x48c]
cmovne esi, ecx
cmp dword [ebp - 0x478], 0x10
cmovae eax, dword [ebp - 0x48c]
push eax
call fcn.100a0c84
add esp, 0x10
test eax, eax
je 0x100799da
or esi, 1
cmp dword [ebp - 0x460], 0x10
lea eax, [ebp - 0x474]
push dword [ebp - 0x6e8]
cmovae eax, dword [ebp - 0x474]
push eax
call fcn.100a0c84
add esp, 8
test eax, eax
je 0x10079a04
or esi, 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6dc], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10079a35
mov eax, dword [ecx]
jmp 0x10079a37
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.100058bd
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x6f0], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10079a7f
mov eax, dword [ecx]
jmp 0x10079a81
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.100058bd
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x6f8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10079ac9
mov eax, dword [ecx]
jmp 0x10079acb
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.100058bd
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10079b0d
mov eax, dword [ecx]
jmp 0x10079b0f
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x4bc]
push 0
push eax
call fcn.100058bd
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.100832e0
push esi
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x6f4], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10079b5f
mov eax, dword [edx]
jmp 0x10079b61
mov eax, edx
mov esi, dword [ebp - 0x6e4]
mov byte [eax], 0
cmp byte [esi], 0
jne 0x10079b73
xor ecx, ecx
jmp 0x10079b8d
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x6dc], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079b80
sub ecx, dword [ebp - 0x6dc]
push ecx
push esi
mov ecx, edx
call fcn.10005844
sub esp, 0x18
mov byte [ebp - 4], 9
mov edx, esp
mov dword [ebp - 0x6f8], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10079bcb
mov eax, dword [edx]
jmp 0x10079bcd
mov eax, edx
mov esi, dword [ebp - 0x6e8]
mov byte [eax], 0
cmp byte [esi], 0
jne 0x10079bdf
xor ecx, ecx
jmp 0x10079bfd
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x6dc], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079bf0
sub ecx, dword [ebp - 0x6dc]
push ecx
push esi
mov ecx, edx
call fcn.10005844
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov edx, esp
mov dword [ebp - 0x6f0], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10079c3b
mov eax, dword [edx]
jmp 0x10079c3d
mov eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x6e0]
cmp byte [eax], 0
jne 0x10079c4f
xor ecx, ecx
jmp 0x10079c73
mov ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x6dc], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079c60
sub ecx, dword [ebp - 0x6dc]
mov eax, dword [ebp - 0x6e0]
push ecx
push eax
mov ecx, edx
call fcn.10005844
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10079cab
mov eax, dword [ecx]
jmp 0x10079cad
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x5f4]
push 0
push eax
call fcn.100058bd
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10083600
mov ecx, edi
call fcn.100839d0
mov eax, dword [ebp - 0x448]
cmp eax, 0x10
jb 0x10079cef
inc eax
push 1
push eax
push dword [ebp - 0x45c]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x448], 0xf
mov dword [ebp - 0x44c], 0
mov byte [ebp - 0x45c], 0
cmp eax, 0x10
jb 0x10079d27
inc eax
push 1
push eax
push dword [ebp - 0x474]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x460], 0xf
mov dword [ebp - 0x464], 0
mov byte [ebp - 0x474], 0
cmp eax, 0x10
jb 0x10079d5f
inc eax
push 1
push eax
push dword [ebp - 0x48c]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x478], 0xf
mov dword [ebp - 0x47c], 0
mov byte [ebp - 0x48c], 0
cmp eax, 0x10
jb 0x10079d97
inc eax
push 1
push eax
push dword [ebp - 0x4bc]
call fcn.10001ef8
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
cmp eax, 8
jb 0x10079dd3
inc eax
push 2
push eax
push dword [ebp - 0x4d4]
call fcn.10001ef8
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1007a462
push 0
push 0x100d2e02
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x490], 0xf
mov dword [ebp - 0x494], 0
mov byte [ebp - 0x4a4], 0
call fcn.10005844
push str._Profile_
lea edx, [ebp - 0x4a4]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.10078d70
push 0x100f1a1c
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x654]
call fcn.100736c0
push str.config1
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x63c]
call fcn.100736c0
push 0x100f9874
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x624]
call fcn.100736c0
lea ecx, [ebp - 0x5f4]
mov byte [ebp - 4], 0x10
push ecx
mov edx, eax
lea ecx, [ebp - 0x60c]
call fcn.10073620
push 0x100f1a1c
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54c]
call fcn.100736c0
push str.config2
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x534]
call fcn.100736c0
push 0x100f9874
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x51c]
call fcn.100736c0
push dword [ebp - 0x6e0]
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x504]
call fcn.100736c0
push 0x100f1a1c
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x4ec]
call fcn.100736c0
push str.config3
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x5dc]
call fcn.100736c0
push 0x100f9874
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x5c4]
call fcn.100736c0
push esi
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x5ac]
call fcn.100736c0
push 0x100f1a1c
mov edx, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x594]
call fcn.100736c0
push str.config4
mov edx, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x57c]
call fcn.100736c0
push 0x100f9874
mov edx, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x564]
call fcn.100736c0
add esp, 0x40
push dword [ebp - 0x6e4]
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x45c]
call fcn.100736c0
push 0x100f1a1c
mov edx, eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x474]
call fcn.100736c0
push str.config5
mov edx, eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x48c]
call fcn.100736c0
push 0x100f9840
mov edx, eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x4bc]
call fcn.100736c0
push 0x100f1a1c
mov edx, eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x4d4]
call fcn.100736c0
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x4a4]
cmp eax, esi
je 0x1007a04f
mov eax, dword [ebp - 0x490]
cmp eax, 0x10
jb 0x1007a028
push 1
inc eax
push eax
push dword [ebp - 0x4a4]
call fcn.10001ef8
add esp, 0xc
push esi
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x490], 0xf
mov dword [ebp - 0x494], 0
mov byte [ebp - 0x4a4], 0
call fcn.10007921
mov eax, dword [ebp - 0x4c0]
cmp eax, 0x10
jb 0x1007a06c
push 1
inc eax
push eax
push dword [ebp - 0x4d4]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4c0], 0xf
mov dword [ebp - 0x4c4], 0
mov byte [ebp - 0x4d4], 0
cmp eax, 0x10
jb 0x1007a0a4
push 1
inc eax
push eax
push dword [ebp - 0x4bc]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
cmp eax, 0x10
jb 0x1007a0dc
push 1
inc eax
push eax
push dword [ebp - 0x48c]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x478], 0xf
mov dword [ebp - 0x47c], 0
mov byte [ebp - 0x48c], 0
cmp eax, 0x10
jb 0x1007a114
push 1
inc eax
push eax
push dword [ebp - 0x474]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x460], 0xf
mov dword [ebp - 0x464], 0
mov byte [ebp - 0x474], 0
cmp eax, 0x10
jb 0x1007a14c
push 1
inc eax
push eax
push dword [ebp - 0x45c]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x550]
mov dword [ebp - 0x448], 0xf
mov dword [ebp - 0x44c], 0
mov byte [ebp - 0x45c], 0
cmp eax, 0x10
jb 0x1007a184
push 1
inc eax
push eax
push dword [ebp - 0x564]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x568]
mov dword [ebp - 0x550], 0xf
mov dword [ebp - 0x554], 0
mov byte [ebp - 0x564], 0
cmp eax, 0x10
jb 0x1007a1bc
push 1
inc eax
push eax
push dword [ebp - 0x57c]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x580]
mov dword [ebp - 0x568], 0xf
mov dword [ebp - 0x56c], 0
mov byte [ebp - 0x57c], 0
cmp eax, 0x10
jb 0x1007a1f4
push 1
inc eax
push eax
push dword [ebp - 0x594]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x598]
mov dword [ebp - 0x580], 0xf
mov dword [ebp - 0x584], 0
mov byte [ebp - 0x594], 0
cmp eax, 0x10
jb 0x1007a22c
push 1
inc eax
push eax
push dword [ebp - 0x5ac]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x598], 0xf
mov dword [ebp - 0x59c], 0
mov byte [ebp - 0x5ac], 0
cmp eax, 0x10
jb 0x1007a264
push 1
inc eax
push eax
push dword [ebp - 0x5c4]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x5c8]
mov dword [ebp - 0x5b0], 0xf
mov dword [ebp - 0x5b4], 0
mov byte [ebp - 0x5c4], 0
cmp eax, 0x10
jb 0x1007a29c
push 1
inc eax
push eax
push dword [ebp - 0x5dc]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x5c8], 0xf
mov dword [ebp - 0x5cc], 0
mov byte [ebp - 0x5dc], 0
cmp eax, 0x10
jb 0x1007a2d4
push 1
inc eax
push eax
push dword [ebp - 0x4ec]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 0xf
mov dword [ebp - 0x4dc], 0
mov byte [ebp - 0x4ec], 0
cmp eax, 0x10
jb 0x1007a30c
push 1
inc eax
push eax
push dword [ebp - 0x504]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x4f0], 0xf
mov dword [ebp - 0x4f4], 0
mov byte [ebp - 0x504], 0
cmp eax, 0x10
jb 0x1007a344
push 1
inc eax
push eax
push dword [ebp - 0x51c]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x508], 0xf
mov dword [ebp - 0x50c], 0
mov byte [ebp - 0x51c], 0
cmp eax, 0x10
jb 0x1007a37c
push 1
inc eax
push eax
push dword [ebp - 0x534]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x520], 0xf
mov dword [ebp - 0x524], 0
mov byte [ebp - 0x534], 0
cmp eax, 0x10
jb 0x1007a3b4
push 1
inc eax
push eax
push dword [ebp - 0x54c]
call fcn.10001ef8
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x60c]
mov dword [ebp - 0x538], 0xf
mov dword [ebp - 0x53c], 0
mov byte [ebp - 0x54c], 0
call fcn.100057ef
push 0
push 1
lea ecx, [ebp - 0x624]
call fcn.100057ef
push 0
push 1
lea ecx, [ebp - 0x63c]
call fcn.100057ef
push 0
push 1
lea ecx, [ebp - 0x654]
call fcn.100057ef
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100057ef
cmp dword [ebp - 0x490], 0x10
lea ecx, [ebp - 0x6ec]
push 0
push ecx
push dword [ebp - 0x494]
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x6ec], 0
cmovae eax, dword [ebp - 0x4a4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x4a4]
call fcn.100057ef
push 0
push 1
lea ecx, [ebp - 0x5f4]
call fcn.100057ef
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008aeea
mov esp, ebp
pop ebp
ret 0x14