Function at 0x10039c70
Capabilities:
Check if file exists
Delete directory
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007a130
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x1008e418]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x1008e418]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x106]
push edx
mov dword [esp + 0x78], eax
mov word [esp + 0x108], cx
call fcn.10061ab0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str._patchs
lea ecx, [esp + 0x100]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x10039d42
lea edx, [esp + 0xfc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea edx, [esp + 0xfc]
mov ecx, esi
call fcn.10034570
neg eax
sbb eax, eax
add eax, 1
jne 0x10039d49
xor eax, eax
jmp 0x1003b1d5
lea ecx, [esp + 0x70]
call fcn.10008570
lea ebx, [esp + 0x70]
lea esi, [esp + 0xfc]
mov dword [esp + 0x318], 0
call fcn.100399e0
xor esi, esi
push esi
push 0x100457ff
push esi
push 0x100457c7
push 1
lea ecx, [esp + 0x110]
push ecx
call fcn.100450f6
lea edx, [esp + 0xfc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0xfc]
push eax
call edi
and dword [esp + 0x94], 0xfffffe00
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
lea ecx, [esp + 0xac]
push ecx
mov byte [esp + 0x31c], 2
call fcn.1000f5c0
mov byte [esp + 0x318], 3
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x84]
test edi, edi
je 0x10039e09
cmp edi, dword [esp + 0x70]
je 0x10039e0e
call fcn.10055ff2
cmp ebx, esi
je 0x1003b0b1
test edi, edi
jne 0x10039f36
call fcn.10055ff2
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x10039e2f
call fcn.10055ff2
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xac]
add eax, 8
push eax
lea edx, [esp + 0xd0]
push edx
lea esi, [esp + 0xb4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0xb0], ecx
call fcn.10007380
mov esi, eax
test ebx, ebx
je 0x10039e6e
cmp ebx, dword [esi]
je 0x10039e73
call fcn.10055ff2
mov eax, dword [esp + 0xa8]
cmp eax, dword [esi + 4]
jne 0x1003b082
test edi, edi
jne 0x10039f3d
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x10039ea0
call fcn.10055ff2
mov ebx, dword [esp + 0x34]
lea edx, [esp + 0xd4]
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.10007230
and dword [esp + 0x5c], 0xfffffe00
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x318], 5
cmp edi, ebx
jne 0x10039f44
call fcn.10055ff2
xor edi, edi
mov ecx, dword [esp + 0x30]
cmp ecx, dword [edi + 0x14]
jne 0x10039ef0
call fcn.10055ff2
mov edx, dword [esp + 0x34]
push edx
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov byte [esp + 0x318], 6
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jb 0x10039f48
mov eax, dword [eax + 4]
jmp 0x10039f4b
mov eax, dword [edi]
jmp 0x10039e25
mov eax, dword [edi]
jmp 0x10039e92
mov edi, dword [edi]
jmp 0x10039ee2
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.unique
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007df96
mov byte [esp + 0x320], 7
call fcn.1004d3b9
mov byte [esp + 0x318], 6
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x10039fb3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, esi
xor edi, edx
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x10039ff5
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a00c
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a023
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov byte [esp + 0x318], 5
cmp dword [esp + 0x50], 0x10
jb 0x1003a048
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003a0b1
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003a065
call fcn.10055ff2
mov edx, dword [esp + 0x34]
add edx, 0x1c
push edx
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 8
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003a0b5
mov eax, dword [eax + 4]
jmp 0x1003a0b8
mov eax, dword [eax]
jmp 0x1003a057
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.kbid
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007ea0c
mov byte [esp + 0x320], 9
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x1003a11f
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, esi
xor edi, edx
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003a161
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a178
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a18f
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
cmp dword [esp + 0x50], 0x10
jb 0x1003a1ac
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003a337
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003a1cd
call fcn.10055ff2
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x38]
mov byte [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
cdq
xor ecx, ecx
and esi, 0xfffffeff
mov edi, eax
mov ebx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push str.level
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007ea15
mov byte [esp + 0x320], 0xa
call fcn.1004d3b9
mov byte [esp + 0x318], 5
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
xor ecx, esi
and ecx, 0xff
xor esi, ecx
lea ecx, [esp + 0x14]
mov byte [eax + 8], dl
cmp eax, ecx
je 0x1003a255
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, esi
xor edi, edx
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003a297
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a2ae
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a2c5
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003a33e
call fcn.10055ff2
xor eax, eax
mov edx, dword [esp + 0x30]
cmp edx, dword [eax + 0x14]
jne 0x1003a2eb
call fcn.10055ff2
mov eax, dword [esp + 0x34]
add eax, 0x3c
push eax
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 0xb
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003a342
mov eax, dword [eax + 4]
jmp 0x1003a345
mov eax, dword [eax]
jmp 0x1003a1bf
mov eax, dword [eax]
jmp 0x1003a2dd
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.name
lea ecx, [esp + 0x58]
push ecx
mov ecx, 0x1007e67c
mov byte [esp + 0x320], 0xc
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
xor ecx, esi
and ecx, 0xff
xor esi, ecx
lea ecx, [esp + 0x14]
mov byte [eax + 8], dl
cmp eax, ecx
je 0x1003a3aa
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, edx
xor edi, esi
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003a3ec
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a403
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a41a
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov byte [esp + 0x318], 5
cmp dword [esp + 0x50], 0x10
jb 0x1003a43f
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003a4a8
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003a45c
call fcn.10055ff2
mov edx, dword [esp + 0x34]
add edx, 0x58
push edx
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 0xd
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003a4ac
mov eax, dword [eax + 4]
jmp 0x1003a4af
mov eax, dword [eax]
jmp 0x1003a44e
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.desc
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007e684
mov byte [esp + 0x320], 0xe
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
xor ecx, esi
and ecx, 0xff
xor esi, ecx
lea ecx, [esp + 0x14]
mov byte [eax + 8], dl
cmp eax, ecx
je 0x1003a514
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, edx
xor edi, esi
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003a556
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a56d
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a584
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov byte [esp + 0x318], 5
cmp dword [esp + 0x50], 0x10
jb 0x1003a5a9
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003a612
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003a5c6
call fcn.10055ff2
mov edx, dword [esp + 0x34]
add edx, 0x74
push edx
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 0xf
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003a616
mov eax, dword [eax + 4]
jmp 0x1003a619
mov eax, dword [eax]
jmp 0x1003a5b8
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.fileName
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007e9fc
mov byte [esp + 0x320], 0x10
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
xor ecx, esi
and ecx, 0xff
xor esi, ecx
lea ecx, [esp + 0x14]
mov byte [eax + 8], dl
cmp eax, ecx
je 0x1003a67e
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, edx
xor edi, esi
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003a6c0
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a6d7
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a6ee
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov byte [esp + 0x318], 5
cmp dword [esp + 0x50], 0x10
jb 0x1003a713
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003a77f
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003a730
call fcn.10055ff2
mov edx, dword [esp + 0x34]
add edx, 0x90
push edx
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 0x11
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003a783
mov eax, dword [eax + 4]
jmp 0x1003a786
mov eax, dword [eax]
jmp 0x1003a722
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push 0x1007e9d4
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007e9d7
mov byte [esp + 0x320], 0x12
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
xor ecx, esi
and ecx, 0xff
xor esi, ecx
lea ecx, [esp + 0x14]
mov byte [eax + 8], dl
cmp eax, ecx
je 0x1003a7eb
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, edx
xor edi, esi
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003a82d
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a844
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a85b
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov byte [esp + 0x318], 5
cmp dword [esp + 0x50], 0x10
jb 0x1003a880
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov edi, dword [esp + 0x2c]
test edi, edi
jne 0x1003a90d
call fcn.10055ff2
xor eax, eax
mov ebx, dword [esp + 0x30]
cmp ebx, dword [eax + 0x14]
jne 0x1003a8a1
call fcn.10055ff2
lea esi, [ebx + 0xb4]
call fcn.10039910
test edi, edi
jne 0x1003a911
call fcn.10055ff2
cmp ebx, dword [edi + 0x14]
jne 0x1003a8bf
call fcn.10055ff2
mov eax, dword [esp + 0x34]
add eax, 0xac
push eax
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 0x13
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003a915
mov eax, dword [eax + 4]
jmp 0x1003a918
mov eax, dword [edi]
jmp 0x1003a893
mov edi, dword [edi]
jmp 0x1003a8b5
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.date
lea ecx, [esp + 0x58]
push ecx
mov ecx, 0x1007ea24
mov byte [esp + 0x320], 0x14
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x1003a97f
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, edx
xor edi, esi
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003a9c1
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003a9d8
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003a9ef
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
cmp dword [esp + 0x50], 0x10
jb 0x1003aa0c
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003ab9e
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003aa2d
call fcn.10055ff2
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0xc8]
mov byte [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
cdq
xor ecx, ecx
and esi, 0xfffffeff
mov edi, eax
mov ebx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push str.size
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007ea1c
mov byte [esp + 0x320], 0x15
call fcn.1004d3b9
mov byte [esp + 0x318], 5
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x1003aaba
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, edx
xor edi, esi
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003aafc
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003ab13
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003ab2a
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003aba5
call fcn.10055ff2
xor eax, eax
mov edx, dword [esp + 0x30]
cmp edx, dword [eax + 0x14]
jne 0x1003ab50
call fcn.10055ff2
mov eax, dword [esp + 0x34]
add eax, 0xcc
push eax
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 0x16
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003aba9
mov eax, dword [eax + 4]
jmp 0x1003abac
mov eax, dword [eax]
jmp 0x1003aa1f
mov eax, dword [eax]
jmp 0x1003ab42
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.instArg
lea ecx, [esp + 0x58]
push ecx
mov ecx, 0x1007ea07
mov byte [esp + 0x320], 0x17
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x1003ac13
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, esi
xor edi, edx
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003ac55
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003ac6c
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003ac83
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
cmp dword [esp + 0x50], 0x10
jb 0x1003aca0
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003ae32
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003acc1
call fcn.10055ff2
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0xe8]
mov byte [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
cdq
xor ecx, ecx
and esi, 0xfffffeff
mov edi, eax
mov ebx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push str.systemPatch
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007e9e3
mov byte [esp + 0x320], 0x18
call fcn.1004d3b9
mov byte [esp + 0x318], 5
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x1003ad4e
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, esi
xor edi, edx
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003ad90
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003ada7
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003adbe
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003ae39
call fcn.10055ff2
xor eax, eax
mov edx, dword [esp + 0x30]
cmp edx, dword [eax + 0x14]
jne 0x1003ade4
call fcn.10055ff2
mov eax, dword [esp + 0x34]
add eax, 0xf0
push eax
lea esi, [esp + 0x3c]
call fcn.10001d10
add esp, 4
mov bl, 0x19
mov byte [esp + 0x318], bl
mov edi, dword [eax + 0x14]
mov byte [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0x100
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jb 0x1003ae3d
mov eax, dword [eax + 4]
jmp 0x1003ae40
mov eax, dword [eax]
jmp 0x1003acb3
mov eax, dword [eax]
jmp 0x1003add6
add eax, 4
push eax
call fcn.1004bfb1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push str.patchEnv
lea ecx, [esp + 0x58]
push ecx
mov ecx, 0x1007e9f0
mov byte [esp + 0x320], 0x1a
call fcn.1004d3b9
mov byte [esp + 0x318], bl
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x1003aea7
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, esi
xor edi, edx
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003aee9
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003af00
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003af17
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
cmp dword [esp + 0x50], 0x10
jb 0x1003af34
mov edx, dword [esp + 0x3c]
push edx
call fcn.10056169
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1003b0a6
call fcn.10055ff2
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x1003af55
call fcn.10055ff2
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0xec]
mov byte [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
cdq
xor ecx, ecx
and esi, 0xfffffeff
mov edi, eax
mov ebx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push 0x1007e9e4
lea eax, [esp + 0x58]
push eax
mov ecx, 0x1007e9e7
mov byte [esp + 0x320], 0x1b
call fcn.1004d3b9
mov byte [esp + 0x318], 5
movsx ecx, byte [eax + 8]
mov dl, byte [esp + 0x1c]
mov byte [eax + 8], dl
mov edx, esi
xor edx, ecx
and edx, 0xff
lea ecx, [esp + 0x14]
xor esi, edx
cmp eax, ecx
je 0x1003afe2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 8
and ecx, 1
shl ecx, 8
mov edi, esi
xor edi, edx
xor ecx, esi
and ecx, 0x100
and edi, 0x100
xor edi, edx
xor esi, ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x20]
mov dword [eax + 8], edi
mov dword [esp + 0x1c], esi
cmp ecx, edx
je 0x1003b024
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x1003b03b
mov edx, dword [ecx]
mov dword [ecx], 0
mov dword [esp + 0x24], edx
add eax, 0x14
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x1003b052
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x14]
call fcn.1004c6f3
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.1004d683
lea esi, [esp + 0x54]
mov byte [esp + 0x318], 3
call fcn.1004c6f3
mov edi, dword [esp + 0x2c]
test edi, edi
jne 0x1003b0ad
call fcn.10055ff2
xor eax, eax
mov esi, dword [esp + 0x30]
cmp esi, dword [eax + 0x14]
jne 0x1003b09b
call fcn.10055ff2
mov ecx, dword [esi]
mov dword [esp + 0x30], ecx
jmp 0x10039df4
mov eax, dword [eax]
jmp 0x1003af47
mov eax, dword [edi]
jmp 0x1003b08d
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0xe4]
call fcn.1004da89
mov edi, dword [esp + 0x6c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x1003b119
cmp esi, 0xffffffff
je 0x1003b129
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x1003b102
lea eax, [esp + 0xe4]
mov edx, dword [esp + 0xf4]
push 0
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0xffffffff
je 0x1003b129
test esi, esi
je 0x1003b129
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.10045456
test edx, edx
ja 0x1003b138
cmp eax, 0x64
jbe 0x1003b13f
mov edi, 1
jmp 0x1003b141
xor edi, edi
cmp dword [esp + 0xf8], 0x10
jb 0x1003b15b
mov eax, dword [esp + 0xe4]
push eax
call fcn.10056169
add esp, 4
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], 0
mov byte [esp + 0xe8], 0
mov byte [esp + 0x31c], 2
call fcn.10001d80
lea esi, [esp + 0x8c]
mov byte [esp + 0x318], 0
call fcn.1004c6f3
lea ebx, [esp + 0x70]
call fcn.1000ba20
mov edx, dword [esp + 0x84]
push edx
call fcn.10056169
mov eax, dword [esp + 0x74]
add esp, 4
push eax
mov dword [esp + 0x88], 0
call fcn.10056169
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.10055232
mov esp, ebp
pop ebp
ret 8