Function at 0x10079150
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 0x100c31ee
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x1010b070]
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.1008df10
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 0x10079214
push str.TencentDeskUpdate_
lea eax, [ebp - 0x23c]
push eax
call esi
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
jne 0x10079206
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.10073990
add esp, 4
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
call edi
test eax, eax
je 0x10079329
push 0x208
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.1008df10
push 0x104
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x444]
push 0x104
push eax
call fcn.10090a6e
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 0x10079313
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.10026c6d
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 0x10079300
push eax
call fcn.100959a0
add esp, 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x5f4]
call fcn.10073560
test eax, eax
je 0x10079329
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 0x10079353
xor ecx, ecx
jmp 0x1007936f
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10079360
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.10082ce0
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 0x100793c4
mov eax, dword [ecx]
jmp 0x100793c6
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.100826f0
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.10083300
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.100a0764
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.100a0764
add esp, 0x10
test eax, eax
je 0x100794ca
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.100a0764
add esp, 8
test eax, eax
je 0x100794f4
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 0x10079525
mov eax, dword [ecx]
jmp 0x10079527
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.1000586c
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 0x1007956f
mov eax, dword [ecx]
jmp 0x10079571
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.1000586c
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 0x100795b9
mov eax, dword [ecx]
jmp 0x100795bb
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.1000586c
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 0x100795fd
mov eax, dword [ecx]
jmp 0x100795ff
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x4bc]
push 0
push eax
call fcn.1000586c
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10082dd0
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 0x1007964f
mov eax, dword [edx]
jmp 0x10079651
mov eax, edx
mov esi, dword [ebp - 0x6e4]
mov byte [eax], 0
cmp byte [esi], 0
jne 0x10079663
xor ecx, ecx
jmp 0x1007967d
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x6dc], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079670
sub ecx, dword [ebp - 0x6dc]
push ecx
push esi
mov ecx, edx
call fcn.100057f3
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 0x100796bb
mov eax, dword [edx]
jmp 0x100796bd
mov eax, edx
mov esi, dword [ebp - 0x6e8]
mov byte [eax], 0
cmp byte [esi], 0
jne 0x100796cf
xor ecx, ecx
jmp 0x100796ed
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 0x100796e0
sub ecx, dword [ebp - 0x6dc]
push ecx
push esi
mov ecx, edx
call fcn.100057f3
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 0x1007972b
mov eax, dword [edx]
jmp 0x1007972d
mov eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x6e0]
cmp byte [eax], 0
jne 0x1007973f
xor ecx, ecx
jmp 0x10079763
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 0x10079750
sub ecx, dword [ebp - 0x6dc]
mov eax, dword [ebp - 0x6e0]
push ecx
push eax
mov ecx, edx
call fcn.100057f3
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 0x1007979b
mov eax, dword [ecx]
jmp 0x1007979d
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x5f4]
push 0
push eax
call fcn.1000586c
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.100830f0
mov ecx, edi
call fcn.100834c0
mov eax, dword [ebp - 0x448]
cmp eax, 0x10
jb 0x100797df
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 0x10079817
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 0x1007984f
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 0x10079887
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 0x100798c3
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 0x10079f52
push 0
push 0x100d1e02
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x490], 0xf
mov dword [ebp - 0x494], 0
mov byte [ebp - 0x4a4], 0
call fcn.100057f3
push str._Profile_
lea edx, [ebp - 0x4a4]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.10078860
push 0x100f0a0c
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x654]
call fcn.100731b0
push str.config1
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x63c]
call fcn.100731b0
push 0x100f8814
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x624]
call fcn.100731b0
lea ecx, [ebp - 0x5f4]
mov byte [ebp - 4], 0x10
push ecx
mov edx, eax
lea ecx, [ebp - 0x60c]
call fcn.10073110
push 0x100f0a0c
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54c]
call fcn.100731b0
push str.config2
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x534]
call fcn.100731b0
push 0x100f8814
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x51c]
call fcn.100731b0
push dword [ebp - 0x6e0]
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x504]
call fcn.100731b0
push 0x100f0a0c
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x4ec]
call fcn.100731b0
push str.config3
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x5dc]
call fcn.100731b0
push 0x100f8814
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x5c4]
call fcn.100731b0
push esi
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x5ac]
call fcn.100731b0
push 0x100f0a0c
mov edx, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x594]
call fcn.100731b0
push str.config4
mov edx, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x57c]
call fcn.100731b0
push 0x100f8814
mov edx, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x564]
call fcn.100731b0
add esp, 0x40
push dword [ebp - 0x6e4]
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x45c]
call fcn.100731b0
push 0x100f0a0c
mov edx, eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x474]
call fcn.100731b0
push str.config5
mov edx, eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x48c]
call fcn.100731b0
push 0x100f8818
mov edx, eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x4bc]
call fcn.100731b0
push 0x100f0a0c
mov edx, eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x4d4]
call fcn.100731b0
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x4a4]
cmp eax, esi
je 0x10079b3f
mov eax, dword [ebp - 0x490]
cmp eax, 0x10
jb 0x10079b18
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.100078d1
mov eax, dword [ebp - 0x4c0]
cmp eax, 0x10
jb 0x10079b5c
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 0x10079b94
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 0x10079bcc
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 0x10079c04
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 0x10079c3c
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 0x10079c74
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 0x10079cac
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 0x10079ce4
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 0x10079d1c
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 0x10079d54
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 0x10079d8c
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 0x10079dc4
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 0x10079dfc
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 0x10079e34
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 0x10079e6c
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 0x10079ea4
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.1000579e
push 0
push 1
lea ecx, [ebp - 0x624]
call fcn.1000579e
push 0
push 1
lea ecx, [ebp - 0x63c]
call fcn.1000579e
push 0
push 1
lea ecx, [ebp - 0x654]
call fcn.1000579e
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000579e
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.1000579e
push 0
push 1
lea ecx, [ebp - 0x5f4]
call fcn.1000579e
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.1008a9f7
mov esp, ebp
pop ebp
ret 0x14