Function at 0x413980
Capabilities:
Check if file exists
Clear file content
Create directory
Delete file
Get common file path
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41e888
push eax
mov eax, 0x1af4
mov dword fs:[0], esp
call fcn.0041ae80
mov eax, dword [0x4256f0]
push ebx
push ebp
push esi
push edi
mov edi, 1
mov esi, ecx
cmp eax, edi
mov dword [esp + 0x34], esi
jne 0x4139d9
lea eax, [esp + 0x98]
lea ecx, [esi + 0x1018]
push eax
push ecx
call sub.MSVCRT.dll__stati64
add esp, 8
test eax, eax
je 0x4139f8
xor eax, eax
jmp 0x414e11
lea edx, [esp + 0x98]
lea eax, [esi + 0x18]
push edx
push eax
call sub.MSVCRT.dll__wstati64
add esp, 8
test eax, eax
je 0x4139f8
xor eax, eax
jmp 0x414e11
mov eax, dword [0x4256f0]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
cmp eax, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jne 0x413a37
xor ebx, ebx
lea eax, [esi + 0x1018]
push ebx
push 0x80
push 3
push ebx
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x413a52
xor ebx, ebx
lea ecx, [esi + 0x18]
push ebx
push 0x80
push 3
push ebx
push edi
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
jne 0x413a64
xor eax, eax
jmp 0x414e11
lea edx, [esp + 0x58]
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
push edi
mov ecx, esi
mov dword [esp + 0x70], ebx
call fcn.00412470
cmp dword [esp + 0x58], ebx
je 0x413aa3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x414e11
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
or ecx, eax
jne 0x413ad3
mov edx, dword [esi + 0x1a90]
mov eax, dword [esi + 0x1a94]
or edx, eax
jne 0x413ad3
mov eax, dword [esp + 0xbc]
cdq
mov dword [esi + 0x1a90], eax
mov dword [esi + 0x1a94], edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
or eax, ecx
jne 0x413e26
mov esi, dword [esp + 0x28]
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
call fcn.00407150
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov eax, dword [ecx + 0x181c]
cmp eax, 1
je 0x413b3f
cmp eax, 3
je 0x413b3f
cmp eax, 2
je 0x413b19
cmp eax, 4
jne 0x413b74
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, ebx
mov dword [esp + 0x1b0c], 1
je 0x413b61
mov ecx, eax
call fcn.00401b20
jmp 0x413b63
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, ebx
mov dword [esp + 0x1b0c], ebx
je 0x413b61
mov ecx, eax
call fcn.00401820
jmp 0x413b63
xor eax, eax
mov ebp, eax
mov dword [esp + 0x1b0c], 0xffffffff
cmp ebp, ebx
jne 0x413b82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x414e11
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1b0c], 2
mov dword [esp + 0x5c], ebx
call fcn.00401000
push 0x10000
push 0x50000
lea ecx, [esp + 0x84]
mov byte [esp + 0x1b14], 3
call fcn.00401020
lea ecx, [esp + 0x7c]
call fcn.00401110
mov dword [esp + 0x70], eax
mov dword [esp + 0x40], ebx
jmp 0x413be1
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x5c]
push ebx
push eax
push 0x10000
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413d38
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x7c]
push edx
call fcn.00401120
lea eax, [esp + 0x30]
lea ecx, [esp + 0x7c]
push eax
mov dword [esp + 0x34], ebx
call fcn.00401140
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jle 0x413d2c
mov edx, dword [ebp]
lea esi, [esp + 0x10]
push ebx
push esi
push ecx
push eax
mov ecx, ebp
call dword [edx + 4]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
cmp edi, ebx
mov dword [esp + 0x54], edi
jle 0x413d2c
mov edx, dword [esp + 0x10]
cmp edx, ebx
mov eax, edx
lea ecx, [edi - 1]
je 0x413c69
cmp ecx, ebx
jle 0x413c6b
mov eax, dword [eax + 4]
dec ecx
cmp eax, ebx
jne 0x413c5d
cmp ecx, ebx
jne 0x413c95
cmp eax, ebx
je 0x413c95
mov eax, dword [eax]
cmp eax, ebx
je 0x413c95
mov cl, byte [eax + 0x14]
test cl, cl
je 0x413c86
mov dword [esp + 0x48], 1
mov cl, byte [eax + 0x15]
test cl, cl
je 0x413c95
mov dword [esp + 0x44], 1
cmp edi, 1
jne 0x413cc4
mov eax, dword [edx]
cmp eax, ebx
je 0x413cad
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
jmp 0x413d0b
cmp edx, ebx
mov esi, edx
lea eax, [edi - 2]
je 0x413cd9
cmp eax, ebx
jle 0x413cd9
mov esi, dword [esi + 4]
dec eax
cmp esi, ebx
jne 0x413ccd
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x413d0b
mov eax, dword [eax]
cmp eax, ebx
je 0x413cef
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 4], ebx
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
dec edi
mov dword [esp + 0x14], edi
cmp dword [esp + 0x48], ebx
je 0x413d17
cmp dword [esp + 0x44], ebx
jne 0x413d2c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x413c54
cmp dword [esp + 0x48], ebx
je 0x413d38
cmp dword [esp + 0x44], ebx
jne 0x413d4a
mov eax, dword [esp + 0x40]
inc eax
cmp eax, 0xa
mov dword [esp + 0x40], eax
jl 0x413bdd
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push edx
push esi
call fcn.0040da00
cmp eax, ebx
jne 0x413dd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1b0c], 2
call fcn.0041d4b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1b0c], 0xffffffff
cmp eax, ebx
je 0x413dd2
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x413dc1
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
jne 0x413da9
xor eax, eax
jmp 0x414e11
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1b0c], 2
call fcn.0041d4b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1b0c], 0xffffffff
cmp eax, ebx
je 0x413e26
mov ecx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
cmp eax, ebx
je 0x413e15
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
jne 0x413dfd
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x1a54]
call fcn.00407370
mov ecx, dword [edi + 0x1a50]
mov esi, eax
call fcn.00407370
mov ecx, dword [edi + 0x1a4c]
add esi, eax
call fcn.00407370
add eax, esi
cdq
mov ecx, eax
mov eax, dword [edi + 0x181c]
cmp eax, 1
mov esi, edx
je 0x413e95
cmp eax, 3
je 0x413e95
cmp eax, 2
jne 0x413e88
add ecx, 0x7e8
push ebx
adc esi, ebx
push 0x800
push esi
push ecx
call fcn.0041ad60
push ebx
push 0x7e9
jmp 0x413eb0
cmp eax, 4
jne 0x413ebb
add ecx, 0x8f6
jmp 0x413e9b
add ecx, 0x8f5
adc esi, ebx
push ebx
push 0x914
push esi
push ecx
call fcn.0041ad60
push ebx
push 0x8f6
push edx
push eax
call fcn.0041ada0
mov ecx, eax
mov esi, edx
mov edi, dword [esp + 0x34]
push esi
push ecx
mov eax, dword [edi + 0x1a70]
cdq
mov ebp, eax
mov eax, dword [edi + 0x1a74]
mov ebx, edx
cdq
mov edi, eax
push ebx
push ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
call fcn.0041ad60
mov ecx, dword [esp + 0x14]
push ecx
push edi
push edx
push eax
call fcn.0041ada0
mov ecx, dword [esp + 0x4c]
mov edi, ecx
sub edi, eax
mov eax, dword [esp + 0x50]
mov esi, eax
sbb esi, edx
mov edx, dword [esp + 0x6c]
test edx, edx
mov edx, dword [esp + 0x68]
ja 0x413f11
test edx, edx
jbe 0x413f3f
sub ecx, edx
mov edx, dword [esp + 0x6c]
sbb eax, edx
js 0x413f3f
jg 0x413f21
test ecx, ecx
jbe 0x413f3f
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0041ad60
push ebx
push ebp
push edx
push eax
call fcn.0041ada0
sub edi, eax
sbb esi, edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0
push 2
push ecx
push edx
call fcn.0041ada0
cmp esi, edx
jg 0x413f6e
jl 0x413f5c
cmp edi, eax
jae 0x413f6e
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x414e11
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], edi
push ecx
push esi
push edi
push edx
mov ecx, ebx
mov dword [esp + 0x74], esi
call fcn.0040e0d0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [0x4256f0]
cmp eax, 1
push 1
mov dword [esp + 0x18], ecx
push 0x1a
jne 0x4140ce
lea edx, [esp + 0xd0]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x423d7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
and ecx, 3
lea eax, [esp + 0xc8]
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
test eax, eax
jne 0x414013
lea ecx, [esp + 0xc8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x423d74
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
test eax, eax
jne 0x414061
lea ecx, [esp + 0xc8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x2d0]
lea eax, [esp + 0xc8]
push edx
push 0
push 0x423ffc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x1e0]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x41419c
lea edx, [esp + 0x7e8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x7e0]
push 0x423d58
push eax
call sub.MSVCRT.dll_wcscat
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea ecx, [esp + 0x7e0]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x414119
lea edx, [esp + 0x7e0]
push 0
push edx
call edi
lea eax, [esp + 0x7e0]
push 0x423d48
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
lea ecx, [esp + 0x7e0]
push ecx
call esi
test eax, eax
jne 0x414147
lea edx, [esp + 0x7e0]
push eax
push edx
call edi
lea eax, [esp + 0xdf8]
lea ecx, [esp + 0x7e0]
push eax
push 0
push 0x423ff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0xdf8]
lea eax, [esp + 0x5d8]
push edx
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea ecx, [esp + 0x5d8]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4141b5
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x414e11
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x20]
mov dword [esp + 0x1b0c], 4
push eax
mov eax, dword [esp + 0x54]
push esi
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0040e220
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, edi
je 0x41420f
cmp ecx, edi
jle 0x414211
mov eax, dword [eax + 4]
dec ecx
cmp eax, edi
jne 0x414203
cmp ecx, edi
jne 0x414221
cmp eax, edi
je 0x414221
mov eax, dword [eax]
cmp eax, edi
mov dword [esp + 0x30], eax
jne 0x414292
cmp dword [0x4256f0], 1
jne 0x41423a
lea eax, [esp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x414248
lea ecx, [esp + 0x5d8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x28]
push edx
call ebp
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1b0c], 0xffffffff
cmp eax, edi
je 0x41428b
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
cmp eax, edi
je 0x41427a
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
jne 0x414262
xor eax, eax
jmp 0x414e11
cmp dword [0x4256f0], 1
jne 0x414366
lea ecx, [esp + 0x2d0]
lea edx, [esp + 0xc8]
push ecx
push 0
push 0x423ffc
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3d0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x3e4]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414413
lea edx, [esp + 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x28]
push eax
call ebp
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1b0c], esi
test eax, eax
je 0x41435f
mov ecx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esi]
test eax, eax
je 0x41434e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x414336
xor eax, eax
jmp 0x414e11
lea edx, [esp + 0xdf8]
lea eax, [esp + 0x7e0]
push edx
push edi
push 0x423ff4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0xdf8]
lea edx, [esp + 0x9e8]
push ecx
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea eax, [esp + 0x9e8]
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414413
lea ecx, [esp + 0x5d8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x28]
push edx
call ebp
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1b0c], esi
test eax, eax
je 0x41440c
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
test eax, eax
je 0x4143fb
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4143e3
xor eax, eax
jmp 0x414e11
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0c], 5
push ecx
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0040e220
push esi
call ebp
cmp dword [ebx + 0x1a78], edi
je 0x4144b3
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
jle 0x4144b3
mov eax, dword [esp + 0x18]
dec ecx
cmp eax, edi
je 0x414473
cmp ecx, edi
jle 0x414475
mov eax, dword [eax + 4]
dec ecx
cmp eax, edi
jne 0x414467
cmp ecx, edi
jne 0x41447f
cmp eax, edi
je 0x41447f
mov eax, dword [eax]
jmp 0x414481
xor eax, eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push edi
push 0x3e8
push ecx
push edx
call fcn.0041ad60
push edi
push 9
push edx
push eax
call fcn.0041ada0
push edx
push eax
mov eax, dword [ebx + 0x1a7c]
push eax
push 0x424000
call fcn.0040b080
add esp, 0x10
cmp dword [0x4256f0], 1
jne 0x4145d8
lea ecx, [esp + 0x2d0]
lea edx, [esp + 0xc8]
push ecx
push 0
push 0x423ffc
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x4e8]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4146d6
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x1cc]
push edx
call esi
lea eax, [esp + 0x3d0]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call ebp
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1b0c], 4
test eax, eax
je 0x41458d
mov edx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x18], edx
mov eax, dword [esi]
test eax, eax
je 0x41457c
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x414564
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x1b0c], 0xffffffff
je 0x4145d1
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
test eax, eax
je 0x4145c0
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4145a8
xor eax, eax
jmp 0x414e11
lea ecx, [esp + 0xdf8]
lea edx, [esp + 0x7e0]
push ecx
push edi
push 0x423ff4
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0xdf8]
lea ecx, [esp + 0xbf0]
push eax
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea edx, [esp + 0xbf0]
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4146d6
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x5d8]
push eax
call esi
lea ecx, [esp + 0x9e8]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call ebp
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1b0c], 4
cmp eax, edi
je 0x41468f
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
cmp eax, edi
je 0x41467e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
jne 0x414666
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
cmp eax, edi
mov dword [esp + 0x1b0c], 0xffffffff
je 0x4146cf
mov ecx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esi]
cmp eax, edi
je 0x4146be
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
jne 0x4146a6
xor eax, eax
jmp 0x414e11
push esi
mov ecx, ebx
call fcn.0040e730
push esi
call ebp
mov edx, dword [esp + 0x28]
push edx
call ebp
mov eax, dword [0x4256f0]
push 0
push 0x80
push 3
push 0
cmp eax, 1
push 1
push 0xc0000000
jne 0x4147c8
lea eax, [ebx + 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x414885
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1cc]
push ecx
call esi
lea edx, [esp + 0x3d0]
push edx
call esi
lea eax, [esp + 0x4d4]
push eax
call esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1b0c], 4
test eax, eax
je 0x41477d
mov ecx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi]
test eax, eax
je 0x41476c
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x414754
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x1b0c], 0xffffffff
je 0x4147c1
mov edx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x20], edx
mov eax, dword [esi]
test eax, eax
je 0x4147b0
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x414798
xor eax, eax
jmp 0x414e11
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x414885
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x5d8]
push ecx
call esi
lea edx, [esp + 0x9e8]
push edx
call esi
lea eax, [esp + 0xbf0]
push eax
call esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1b0c], 4
test eax, eax
je 0x41483a
mov ecx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi]
test eax, eax
je 0x414829
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x414811
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x1b0c], 0xffffffff
je 0x41487e
mov edx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x20], edx
mov eax, dword [esi]
test eax, eax
je 0x41486d
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x414855
xor eax, eax
jmp 0x414e11
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x414bde
cmp eax, dword [esp + 0x14]
jg 0x414bde
jl 0x4148ae
cmp ecx, dword [esp + 0x10]
jae 0x414bde
cmp dword [0x4256f0], 1
jne 0x4149d6
lea eax, [esp + 0x2d0]
lea ecx, [esp + 0xc8]
push eax
push 0
push 0x423ffc
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xff8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x100c]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414ade
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x4d4]
push edx
call esi
lea eax, [esp + 0x1cc]
push eax
call esi
lea ecx, [esp + 0x3d0]
push ecx
call esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1b0c], 4
test eax, eax
je 0x41498b
mov edx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x18], edx
mov eax, dword [esi]
test eax, eax
je 0x41497a
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x414962
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x1b0c], 0xffffffff
je 0x4149cf
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
test eax, eax
je 0x4149be
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4149a6
xor eax, eax
jmp 0x414e11
lea ecx, [esp + 0xdf8]
lea edx, [esp + 0x7e0]
push ecx
push 0
push 0x423ff4
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0xdf8]
lea ecx, [esp + 0x10fc]
push eax
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea edx, [esp + 0x10fc]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414ade
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0xbf0]
push eax
call esi
lea ecx, [esp + 0x5d8]
push ecx
call esi
lea edx, [esp + 0x9e8]
push edx
call esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1b0c], 4
test eax, eax
je 0x414a93
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
test eax, eax
je 0x414a82
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x414a6a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x1b0c], 0xffffffff
je 0x414ad7
mov ecx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esi]
test eax, eax
je 0x414ac6
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x414aae
xor eax, eax
jmp 0x414e11
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
push 0
push edx
push eax
push ebp
call fcn.00407150
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
add esp, 0x10
push 0
push esi
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.0040e220
push 0
push 0
push 0
push esi
call fcn.00407150
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
push 0
push edx
push eax
push ebp
call fcn.00407150
add esp, 0x20
xor edi, edi
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x40]
push 0
push ecx
lea edx, [esp + 0x130c]
push 0x800
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x414b8a
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x130c]
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
add edi, ecx
adc eax, 0
mov dword [esp + 0x3c], eax
jmp 0x414b3d
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x3c]
add eax, edi
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x14]
adc eax, ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
cmp dword [0x4256f0], 1
jne 0x414bcc
lea eax, [esp + 0xff8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x414c01
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10fc]
push ecx
call esi
jmp 0x414c07
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push ebp
call fcn.00407150
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x4256f0], 1
jne 0x414d19
lea ecx, [esp + 0x5d8]
push 0x104
push ecx
lea edi, [esp + 0x1d4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x1d4]
not ecx
push ecx
push edx
push eax
push eax
call esi
lea eax, [esp + 0x9e8]
push 0x104
push eax
lea edi, [esp + 0x3d8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x3dc]
push ecx
push eax
push eax
call esi
lea edi, [esp + 0x4d4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xbf0]
repne scasb al, byte es:[edi]
push 0x104
push edx
not ecx
lea eax, [esp + 0x4dc]
push ecx
push eax
push 0
push 0
call esi
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebx + 0x1a8c]
push edx
mov edx, dword [ebx + 0x1a88]
push eax
mov eax, dword [ebx + 0x1a94]
push ecx
mov ecx, dword [ebx + 0x1a90]
push edx
push eax
lea edx, [esp + 0x5f0]
push ecx
lea eax, [esp + 0xc0c]
push edx
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xa0c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00414e30
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x1cc]
push edx
mov edi, eax
call esi
lea eax, [esp + 0x3d0]
push eax
call esi
lea ecx, [esp + 0x4d4]
push ecx
jmp 0x414d90
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
mov eax, dword [ebx + 0x1a8c]
push ecx
mov ecx, dword [ebx + 0x1a88]
push edx
mov edx, dword [ebx + 0x1a94]
push eax
mov eax, dword [ebx + 0x1a90]
push ecx
push edx
lea ecx, [esp + 0x5f0]
push eax
lea edx, [esp + 0xc0c]
push ecx
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xa0c]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00414e30
lea ecx, [esp + 0x5d8]
mov edi, eax
push ecx
call esi
lea edx, [esp + 0x9e8]
push edx
call esi
lea eax, [esp + 0xbf0]
push eax
call esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1b0c], 4
test eax, eax
je 0x414dcb
mov ecx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi]
test eax, eax
je 0x414dba
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x414da2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x1b0c], 0xffffffff
je 0x414e0f
mov edx, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x20], edx
mov eax, dword [esi]
test eax, eax
je 0x414dfe
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x414de6
mov eax, edi
mov ecx, dword [esp + 0x1b04]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b00
ret