Function at 0x412564
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov eax, edx
xor edx, edx
push edi
mov edi, ecx
mov dword [ebp - 8], eax
mov ecx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov ebx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x50], edx
call fcn.00419433
mov ecx, dword [ebp - 8]
mov esi, ecx
and esi, 1
mov eax, ecx
and eax, 0x200
mov dword [ebp - 0x2c], esi
neg eax
push 0xb
sbb eax, eax
pop edx
and eax, edx
add eax, 0x6e
push eax
mov eax, ecx
and eax, 0x100
neg eax
sbb eax, eax
and eax, edx
add eax, 0x6e
push eax
mov eax, ecx
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, edx
add eax, 0x6e
push eax
mov eax, ecx
and al, 0x20
movzx eax, al
neg eax
sbb eax, eax
and eax, edx
add eax, 0x6e
push eax
mov eax, ecx
and al, 8
movzx eax, al
neg eax
sbb eax, eax
and eax, edx
add eax, 0x6e
push eax
mov eax, ecx
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, edx
add eax, 0x6e
push eax
mov eax, esi
neg eax
sbb eax, eax
and eax, edx
add eax, 0x6e
push eax
push 0x4038a8
push 2
call fcn.0041944e
add esp, 0x24
test esi, esi
je 0x412645
and dword [ebp - 8], 0xfffffef3
lea edx, [ebp - 0x5c]
mov ecx, edi
call fcn.004138ca
test eax, eax
jne 0x412660
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41305f
lea eax, [ebp - 0x44]
mov ecx, section..data
push eax
push 1
push 4
pop edx
call fcn.004196d9
test eax, eax
jne 0x412684
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x413057
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00419597
test eax, eax
je 0x412677
and dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x5c]
mov edx, 0x40396c
call fcn.00419fe5
test eax, eax
je 0x4126ae
mov dword [ebp - 0x30], 1
xor eax, eax
lea ecx, [ebp - 0x5c]
mov edx, 0x40397c
mov dword [ebp - 0x34], eax
call fcn.00419fe5
test eax, eax
je 0x4126ca
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov edx, 0x403990
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov dword [ebp - 0xc], eax
test eax, eax
je 0x412677
mov edx, 0x4039d0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov dword [ebp - 0x24], eax
test eax, eax
je 0x412677
lea ecx, [ebp - 0x5c]
call fcn.004146a6
mov eax, dword [ebp - 8]
test eax, 0x200
je 0x4127b0
mov ecx, edi
call fcn.004122f2
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
jne 0x412736
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x403a08
push 4
call fcn.0041944e
add esp, 0x10
jmp 0x413057
push esi
push 0x403a50
push 2
call fcn.0041944e
add esp, 0xc
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041a694
mov esi, eax
test esi, esi
je 0x41277f
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x41276a
movzx esi, si
push esi
push 0x403a80
push 4
call fcn.0041944e
add esp, 0xc
jmp 0x413057
mov eax, dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, 0xb
add eax, 0x6e
push eax
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xb
add eax, 0x6e
push eax
push 0x403ae0
push 2
call fcn.0041944e
mov eax, dword [ebp - 8]
add esp, 0x10
mov esi, dword [ebp - 0x2c]
test al, 0x20
je 0x4127cd
xor ebx, ebx
inc ebx
push 0x403b58
push 3
mov dword [ebp - 0x18], ebx
call fcn.0041944e
pop ecx
pop ecx
jmp 0x41285f
mov edi, dword [ebp - 0xc]
xor edx, edx
mov ecx, edi
cmp dword [ebp - 0x30], ebx
je 0x41282e
inc edx
call fcn.0041a459
test eax, eax
jne 0x4127f6
mov eax, 0xc1
push eax
push edi
mov esi, eax
push 0x403bb8
jmp 0x412727
mov edx, 0x403c40
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x412677
xor edx, edx
mov ecx, edi
inc edx
call fcn.0041a459
test eax, eax
je 0x412847
mov ecx, dword [ebp - 0xc]
mov edx, edi
push 0
call fcn.004137e8
mov ebx, eax
jmp 0x41284a
call fcn.0041a459
test eax, eax
je 0x4127e3
mov ebx, dword [ebp - 0x24]
xor edx, edx
mov ecx, ebx
call fcn.0041a459
test eax, eax
jne 0x41284f
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], ebx
jmp 0x41285f
push 0
mov edx, ebx
mov ecx, edi
call fcn.004137e8
mov ebx, eax
mov dword [ebp - 0x18], eax
mov edx, 0x403c70
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x412882
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x413054
mov edx, 0x403ca0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x412875
mov eax, 0x403cc4
test ebx, ebx
jne 0x4128a6
mov eax, 0x403ccc
push ecx
push edi
push eax
push 0x403cd8
push 2
call fcn.0041944e
mov edx, dword [ebp - 0x20]
add esp, 0x14
push 1
push ecx
push esi
mov esi, dword [ebp - 0x34]
mov ecx, edi
push esi
push esi
push ebx
push 0
call fcn.004131ec
test eax, eax
jne 0x4128f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x20]
push edi
push 0x403d40
push 4
call fcn.0041944e
add esp, 0x14
jmp 0x413054
cmp dword [ebp - 0x30], 0
jne 0x412ae7
mov edx, 0x403dc0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x5c]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call fcn.00413ba6
mov edx, 0x403df0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov esi, eax
test ebx, ebx
je 0x412a2c
test esi, esi
je 0x412a2c
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41294c
test al, 0x50
jne 0x41294c
inc edi
push 2
mov edx, 0x403ea0
mov ecx, esi
call fcn.0041a247
mov ecx, dword [ebp - 0xc]
mov edx, esi
push 1
mov ebx, eax
call fcn.004137e8
test edi, edi
je 0x412975
cmp ebx, 1
jne 0x41299b
test eax, eax
je 0x41299b
mov ecx, dword [ebp - 0x14]
call fcn.0041bd34
test eax, eax
jne 0x412a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403eb8
push 3
call fcn.0041944e
add esp, 0xc
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4129b5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x4129c9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x403fd4
push 2
call fcn.0041944e
pop ecx
pop ecx
mov edx, 0x404010
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov esi, eax
test esi, esi
je 0x412a3f
mov ecx, esi
call fcn.0041bd34
test eax, eax
jne 0x412a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x404058
push 3
call fcn.0041944e
add esp, 0xc
jmp 0x412a4d
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.00413664
test eax, eax
jne 0x41299b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403f40
jmp 0x412991
push 0x403e38
push 3
call fcn.0041944e
pop ecx
pop ecx
jmp 0x41299e
push 0x4040c8
push 3
call fcn.0041944e
pop ecx
pop ecx
test esi, esi
je 0x412a61
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x18]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
neg eax
lea ecx, [ebp - 0x5c]
mov edx, 0x4042c0
sbb eax, eax
not eax
and eax, edi
mov dword [ebp - 4], eax
call fcn.00419e25
mov esi, dword [ebp - 8]
push 0
pop edx
push edx
push 6
push edx
pop ecx
and esi, 0x80
mov dword [ebp - 0x14], eax
setne cl
inc ecx
push ecx
push edx
push edx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412c0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x412bfa
test esi, esi
jne 0x412bfa
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.004123b9
jmp 0x412cde
cmp dword [ebp - 0x2c], 0
jne 0x412a64
test esi, esi
je 0x412b35
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x412b14
mov edx, 0x403c40
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov dword [ebp - 0x10], eax
test eax, eax
je 0x412875
push 0x404120
xor edx, edx
mov ecx, eax
call fcn.004197b4
test eax, eax
jne 0x412b35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412875
test ebx, ebx
je 0x412b4c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.00413664
test eax, eax
je 0x412875
mov ecx, dword [ebp - 0x10]
call fcn.0041ba2e
test eax, eax
jne 0x412b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.00411e8e
push esi
push ebx
push 0x4041e0
push 4
call fcn.0041944e
add esp, 0x10
jmp 0x413054
mov ecx, dword [ebp - 0x10]
push 7
pop edx
call fcn.00413d45
test eax, eax
je 0x412875
test esi, esi
je 0x412bc8
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov esi, 0x404120
inc edx
push esi
call fcn.004197b4
test eax, eax
je 0x412875
push esi
mov esi, dword [ebp - 0x24]
xor edx, edx
mov ecx, esi
call fcn.004197b4
test eax, eax
jne 0x412bcb
jmp 0x412875
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.0041b5fc
test eax, eax
jne 0x412a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x24]
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.00411e8e
push esi
push ebx
push 0x404250
jmp 0x412b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x14]
push eax
push esi
push 0x404300
jmp 0x412cd4
push 0x10000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x412c3e
mov esi, dword [ebp - 0x14]
push esi
push 0x404378
push 3
call fcn.0041944e
add esp, 0xc
jmp 0x412cb5
push 0x10000
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x48]
push 0
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push 0x404300
push 3
call fcn.0041944e
add esp, 0x10
jmp 0x412ca2
mov eax, 0x10000
cmp dword [ebp - 0x48], eax
je 0x412ca2
mov ecx, dword [ebp - 0x14]
push eax
push dword [ebp - 0x48]
push ecx
push 0x404400
push 3
call fcn.0041944e
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x14]
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, esi
call fcn.0041ba2e
test eax, eax
jne 0x412cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x404498
push 3
call fcn.0041944e
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x412d87
cmp dword [ebp - 0x2c], 0
jne 0x412d68
mov edx, 0x404520
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov edx, 0x404550
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov ecx, dword [ebp - 0x3c]
mov edi, eax
push 6
pop edx
mov dword [ebp - 0x50], edi
call fcn.00413d45
test eax, eax
jne 0x412d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412875
push 6
pop edx
mov ecx, edi
call fcn.00413d45
test eax, eax
jne 0x412d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412875
push 6
pop edx
mov ecx, esi
call fcn.00413d45
test eax, eax
jne 0x412d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412875
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x412d8a
mov ecx, dword [ebp - 0x20]
xor edx, edx
push 0x404588
call fcn.004197b4
test eax, eax
jne 0x412d8a
jmp 0x412875
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
test al, 8
je 0x412e07
mov edx, 0x4046a0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x412875
mov edx, 0x4046d0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x412875
push eax
push edi
push 0x404708
push 2
call fcn.0041944e
mov edx, dword [ebp - 0x1c]
add esp, 0x10
push 1
push ecx
push dword [ebp - 0x2c]
mov ecx, edi
push esi
push esi
push ebx
push 0
call fcn.004131ec
test eax, eax
jne 0x412e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x1c]
push edi
push 0x404750
jmp 0x4128e4
mov eax, dword [ebp - 8]
test al, 4
je 0x412e7f
mov edx, 0x4047c0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x412875
mov edx, 0x4047f0
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x412875
push eax
push edi
push 0x404830
push 2
call fcn.0041944e
mov edx, dword [ebp - 0x1c]
add esp, 0x10
push 1
push ecx
push dword [ebp - 0x2c]
mov ecx, edi
push esi
push esi
push ebx
push 0
call fcn.004131ec
test eax, eax
jne 0x412e7f
push edi
push 0x404880
push 3
call fcn.0041944e
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x413009
mov edi, dword [ebp - 0x20]
mov ecx, edi
push 6
pop edx
call fcn.00413d45
test eax, eax
je 0x412875
test esi, esi
je 0x412eba
xor edx, edx
mov ecx, edi
push 0x404588
inc edx
call fcn.004197b4
test eax, eax
je 0x412875
mov edi, 0x4049d0
lea ecx, [ebp - 0x5c]
mov edx, edi
call fcn.00419e25
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x412ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x404a08
jmp 0x412b73
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413009
test al, 0x50
jne 0x413009
mov edx, 0x404a60
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
jne 0x412f22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x404a60
jmp 0x412eda
mov edx, 0x404a90
lea ecx, [ebp - 0x5c]
call fcn.00419e25
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x412f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x404a90
jmp 0x412eda
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412f78
test al, 0x50
jne 0x412f78
mov ecx, dword [ebp - 0x38]
call fcn.0041b5fc
test eax, eax
jne 0x412f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x38]
push 0x404ab8
jmp 0x412b73
mov ecx, dword [ebp - 0x28]
mov edx, edi
call fcn.00413664
test eax, eax
jne 0x412f9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push dword [ebp - 0x28]
push 0x404b18
jmp 0x4128e4
mov ecx, dword [ebp - 0x28]
call fcn.0041b5fc
test eax, eax
jne 0x412fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x28]
push 0x404b70
jmp 0x412b73
push 6
pop edx
mov ecx, edi
call fcn.00413d45
test eax, eax
jne 0x412fe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x404bf8
jmp 0x412b73
test esi, esi
je 0x413009
mov edx, 0x404c60
mov ecx, edi
call fcn.004199ed
test eax, eax
jne 0x413009
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x404cd8
jmp 0x412b73
test dword [ebp - 8], 0x100
je 0x413025
push ebx
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.00413e10
test eax, eax
je 0x412875
mov edx, ebx
lea ecx, [ebp - 0x5c]
call fcn.004140ba
test eax, eax
je 0x412875
call fcn.00411886
mov esi, eax
test esi, esi
je 0x413054
push esi
push 0x404d50
push 3
call fcn.0041944e
add esp, 0xc
xor esi, esi
mov ebx, dword [ebp - 4]
lea ecx, [ebp - 0x5c]
call fcn.00419df0
test esi, esi
je 0x413073
push esi
push 0x404da8
push 4
call fcn.0041944e
add esp, 0xc
call fcn.004193ac
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x413088
xor edx, edx
mov ecx, eax
call fcn.00419597
test ebx, ebx
je 0x41309f
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4130a1
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4130b7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4130cd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4130e3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4130f9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41310f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x413125
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41313b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x413151
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x413167
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41317d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x413193
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4131a9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4131bf
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4131d5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x4131e4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4131e7
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret