Function at 0x1007a2a0
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 0x100c454e
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x1010e070]
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.1008f060
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 0x1007a364
push str.TencentDeskUpdate_
lea eax, [ebp - 0x23c]
push eax
call esi
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
jne 0x1007a356
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.10074ae0
add esp, 4
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
call edi
test eax, eax
je 0x1007a479
push 0x208
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.1008f060
push 0x104
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x444]
push 0x104
push eax
call fcn.10091bbe
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 0x1007a463
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.10027160
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 0x1007a450
push eax
call fcn.10096af0
add esp, 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x5f4]
call fcn.100746b0
test eax, eax
je 0x1007a479
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 0x1007a4a3
xor ecx, ecx
jmp 0x1007a4bf
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007a4b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x4d4]
call fcn.10001ddf
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x6dc]
add edi, 0x8c
mov ecx, edi
call fcn.10083e30
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 0x1007a514
mov eax, dword [ecx]
jmp 0x1007a516
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x4d4]
push edx
push eax
call fcn.10001b8f
mov ecx, edi
call fcn.10083840
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.10084450
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.100a18b4
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.100a18b4
add esp, 0x10
test eax, eax
je 0x1007a61a
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.100a18b4
add esp, 8
test eax, eax
je 0x1007a644
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 0x1007a675
mov eax, dword [ecx]
jmp 0x1007a677
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.100058d2
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 0x1007a6bf
mov eax, dword [ecx]
jmp 0x1007a6c1
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.100058d2
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 0x1007a709
mov eax, dword [ecx]
jmp 0x1007a70b
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.100058d2
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 0x1007a74d
mov eax, dword [ecx]
jmp 0x1007a74f
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x4bc]
push 0
push eax
call fcn.100058d2
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10083f20
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 0x1007a79f
mov eax, dword [edx]
jmp 0x1007a7a1
mov eax, edx
mov esi, dword [ebp - 0x6e4]
mov byte [eax], 0
cmp byte [esi], 0
jne 0x1007a7b3
xor ecx, ecx
jmp 0x1007a7cd
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x6dc], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007a7c0
sub ecx, dword [ebp - 0x6dc]
push ecx
push esi
mov ecx, edx
call fcn.10005859
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 0x1007a80b
mov eax, dword [edx]
jmp 0x1007a80d
mov eax, edx
mov esi, dword [ebp - 0x6e8]
mov byte [eax], 0
cmp byte [esi], 0
jne 0x1007a81f
xor ecx, ecx
jmp 0x1007a83d
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 0x1007a830
sub ecx, dword [ebp - 0x6dc]
push ecx
push esi
mov ecx, edx
call fcn.10005859
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 0x1007a87b
mov eax, dword [edx]
jmp 0x1007a87d
mov eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x6e0]
cmp byte [eax], 0
jne 0x1007a88f
xor ecx, ecx
jmp 0x1007a8b3
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 0x1007a8a0
sub ecx, dword [ebp - 0x6dc]
mov eax, dword [ebp - 0x6e0]
push ecx
push eax
mov ecx, edx
call fcn.10005859
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 0x1007a8eb
mov eax, dword [ecx]
jmp 0x1007a8ed
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x5f4]
push 0
push eax
call fcn.100058d2
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10084240
mov ecx, edi
call fcn.10084610
mov eax, dword [ebp - 0x448]
cmp eax, 0x10
jb 0x1007a92f
inc eax
push 1
push eax
push dword [ebp - 0x45c]
call fcn.10001f08
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 0x1007a967
inc eax
push 1
push eax
push dword [ebp - 0x474]
call fcn.10001f08
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 0x1007a99f
inc eax
push 1
push eax
push dword [ebp - 0x48c]
call fcn.10001f08
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 0x1007a9d7
inc eax
push 1
push eax
push dword [ebp - 0x4bc]
call fcn.10001f08
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 0x1007aa13
inc eax
push 2
push eax
push dword [ebp - 0x4d4]
call fcn.10001f08
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 0x1007b0a2
push 0
push 0x100d3e22
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x490], 0xf
mov dword [ebp - 0x494], 0
mov byte [ebp - 0x4a4], 0
call fcn.10005859
push str._Profile_
lea edx, [ebp - 0x4a4]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.100799b0
push 0x100f2a8c
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x654]
call fcn.10074300
push str.config1
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x63c]
call fcn.10074300
push 0x100fab10
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x624]
call fcn.10074300
lea ecx, [ebp - 0x5f4]
mov byte [ebp - 4], 0x10
push ecx
mov edx, eax
lea ecx, [ebp - 0x60c]
call fcn.10074260
push 0x100f2a8c
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54c]
call fcn.10074300
push str.config2
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x534]
call fcn.10074300
push 0x100fab10
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x51c]
call fcn.10074300
push dword [ebp - 0x6e0]
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x504]
call fcn.10074300
push 0x100f2a8c
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x4ec]
call fcn.10074300
push str.config3
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x5dc]
call fcn.10074300
push 0x100fab10
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x5c4]
call fcn.10074300
push esi
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x5ac]
call fcn.10074300
push 0x100f2a8c
mov edx, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x594]
call fcn.10074300
push str.config4
mov edx, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x57c]
call fcn.10074300
push 0x100fab10
mov edx, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x564]
call fcn.10074300
add esp, 0x40
push dword [ebp - 0x6e4]
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x45c]
call fcn.10074300
push 0x100f2a8c
mov edx, eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x474]
call fcn.10074300
push str.config5
mov edx, eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x48c]
call fcn.10074300
push 0x100fab14
mov edx, eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x4bc]
call fcn.10074300
push 0x100f2a8c
mov edx, eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x4d4]
call fcn.10074300
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x4a4]
cmp eax, esi
je 0x1007ac8f
mov eax, dword [ebp - 0x490]
cmp eax, 0x10
jb 0x1007ac68
push 1
inc eax
push eax
push dword [ebp - 0x4a4]
call fcn.10001f08
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.10007941
mov eax, dword [ebp - 0x4c0]
cmp eax, 0x10
jb 0x1007acac
push 1
inc eax
push eax
push dword [ebp - 0x4d4]
call fcn.10001f08
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 0x1007ace4
push 1
inc eax
push eax
push dword [ebp - 0x4bc]
call fcn.10001f08
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 0x1007ad1c
push 1
inc eax
push eax
push dword [ebp - 0x48c]
call fcn.10001f08
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 0x1007ad54
push 1
inc eax
push eax
push dword [ebp - 0x474]
call fcn.10001f08
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 0x1007ad8c
push 1
inc eax
push eax
push dword [ebp - 0x45c]
call fcn.10001f08
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 0x1007adc4
push 1
inc eax
push eax
push dword [ebp - 0x564]
call fcn.10001f08
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 0x1007adfc
push 1
inc eax
push eax
push dword [ebp - 0x57c]
call fcn.10001f08
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 0x1007ae34
push 1
inc eax
push eax
push dword [ebp - 0x594]
call fcn.10001f08
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 0x1007ae6c
push 1
inc eax
push eax
push dword [ebp - 0x5ac]
call fcn.10001f08
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 0x1007aea4
push 1
inc eax
push eax
push dword [ebp - 0x5c4]
call fcn.10001f08
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 0x1007aedc
push 1
inc eax
push eax
push dword [ebp - 0x5dc]
call fcn.10001f08
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 0x1007af14
push 1
inc eax
push eax
push dword [ebp - 0x4ec]
call fcn.10001f08
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 0x1007af4c
push 1
inc eax
push eax
push dword [ebp - 0x504]
call fcn.10001f08
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 0x1007af84
push 1
inc eax
push eax
push dword [ebp - 0x51c]
call fcn.10001f08
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 0x1007afbc
push 1
inc eax
push eax
push dword [ebp - 0x534]
call fcn.10001f08
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 0x1007aff4
push 1
inc eax
push eax
push dword [ebp - 0x54c]
call fcn.10001f08
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.10005804
push 0
push 1
lea ecx, [ebp - 0x624]
call fcn.10005804
push 0
push 1
lea ecx, [ebp - 0x63c]
call fcn.10005804
push 0
push 1
lea ecx, [ebp - 0x654]
call fcn.10005804
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10005804
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.10005804
push 0
push 1
lea ecx, [ebp - 0x5f4]
call fcn.10005804
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.1008bb47
mov esp, ebp
pop ebp
ret 0x14