Function at 0x4a36c0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x50b164]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x4a3701
push 6
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a440f
push 0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileSize
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0x3e8], eax
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x3e8], 0xffffffff
jne 0x4a372e
xor eax, eax
jmp 0x4a440f
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileMappingW
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x88]
cmp dword [edx + 8], 0
jne 0x4a375d
xor eax, eax
jmp 0x4a440f
push 0
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 8]
push ecx
call sub.KERNEL32.dll_MapViewOfFileEx
mov edx, dword [ebp - 0x88]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0xc], 0
jne 0x4a3792
xor eax, eax
jmp 0x4a440f
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0xc4]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4a37c3
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a440f
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3dc], ecx
mov edx, dword [ebp - 0x88]
mov dword [edx + 0x3d0], 0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.004a36a0
add esp, 4
mov edx, dword [ebp - 0x88]
mov dword [edx + 0x3d4], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x88]
mov edx, dword [eax + 0x3dc]
cmp edx, dword [ecx + 0x3e8]
ja 0x4a3840
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x3dc]
add ecx, 0xf8
mov edx, dword [ebp - 0x88]
cmp ecx, dword [edx + 0x3e8]
jbe 0x4a3851
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a440f
push 0x40
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x88]
add ecx, dword [edx + 0x3d0]
push ecx
mov eax, dword [ebp - 0x88]
add eax, 0x18
push eax
call fcn.004a9d20
add esp, 0xc
push 0xf8
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x88]
add edx, dword [eax + 0x3dc]
push edx
mov ecx, dword [ebp - 0x88]
add ecx, 0x58
push ecx
call fcn.004a9d20
add esp, 0xc
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x58], 0x4550
je 0x4a38c8
push 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a440f
mov eax, dword [ebp - 0x88]
movzx ecx, word [eax + 0x6c]
test ecx, ecx
jne 0x4a38e7
push 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a440f
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x3dc]
mov ecx, dword [ebp - 0x88]
movzx edx, word [ecx + 0x6c]
lea eax, [eax + edx + 0x18]
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0x3e0], eax
mov edx, dword [ebp - 0x88]
movzx eax, word [edx + 0x5e]
cmp eax, 0x10
jbe 0x4a392d
push 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a440f
mov ecx, dword [ebp - 0x88]
movzx edx, word [ecx + 0x5e]
imul eax, edx, 0x28
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x88]
add edx, dword [eax + 0x3e0]
push edx
mov ecx, dword [ebp - 0x88]
add ecx, 0x150
push ecx
call fcn.004a9d20
add esp, 0xc
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x8c], 0
jmp 0x4a399f
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x88]
movzx ecx, word [eax + 0x5e]
cmp dword [ebp - 0x8c], ecx
jae 0x4a3a8b
push 0x4e518c
imul edx, dword [ebp - 0x8c], 0x28
mov eax, dword [ebp - 0x88]
lea ecx, [eax + edx + 0x150]
push ecx
call fcn.004b1700
add esp, 8
test eax, eax
jne 0x4a3a86
push 0x40
imul edx, dword [ebp - 0x8c], 0x28
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x88]
add ecx, dword [eax + edx + 0x164]
push ecx
lea ecx, [ebp - 0x44]
push ecx
call fcn.004a9d20
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0x18], 0
je 0x4a3a4c
imul eax, dword [ebp - 0x8c], 0x28
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + eax + 0x164]
add edx, 0x40
mov eax, dword [ebp - 0x88]
mov dword [eax + 0x3d0], edx
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x3d4], edx
imul eax, dword [ebp - 0x8c], 0x28
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + eax + 0x15c]
mov dword [ebp - 0xc8], edx
imul eax, dword [ebp - 0x8c], 0x28
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0xc8]
add edx, dword [ecx + eax + 0x160]
mov dword [ebp - 0xe0], edx
jmp 0x4a3990
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + eax + 0xd0]
mov dword [ebp - 0xf8], edx
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x4a3aeb
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0x98], 0
je 0x4a3afd
cmp dword [ebp - 0xa0], 0
jne 0x4a3b0e
push 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a440f
mov dword [ebp - 0xb0], 0
jmp 0x4a3b29
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
imul ecx, dword [ebp - 0xb0], 0x14
mov edx, dword [ebp - 0x98]
cmp dword [edx + ecx], 0
jne 0x4a3b50
imul eax, dword [ebp - 0xb0], 0x14
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + eax + 0x10], 0
je 0x4a3b52
jmp 0x4a3b1a
mov edx, dword [ebp - 0x88]
add edx, 0x400
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0x88]
mov dword [eax + 0x400], 0
mov dword [ebp - 0x8c], 0
jmp 0x4a3b9e
mov ecx, dword [ebp - 0x8c]
add ecx, 1
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x98]
add edx, 0x14
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0xb0]
jae 0x4a4155
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x4a3bf4
push 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x4a440d
push 0x24
call fcn.004a798e
add esp, 4
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x4a3c20
mov ecx, dword [ebp - 0xd4]
call fcn.004a3040
mov dword [ebp - 0xd8], eax
jmp 0x4a3c2a
mov dword [ebp - 0xd8], 0
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
jne 0x4a3c50
push 0xe
call sub.KERNEL32.dll_SetLastError
jmp 0x4a440d
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x90]
mov dword [edx], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x404]
add eax, 1
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0x404], eax
mov edx, dword [ebp - 0xb4]
push edx
call fcn.004a3550
add esp, 4
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x90]
cmp dword [edx + 0x20], 0
jne 0x4a3cb3
jmp 0x4a440d
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x90]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x90]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 0xc8]
jb 0x4a3d50
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 0xe0]
jae 0x4a3d50
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x90]
mov dword [edx + 4], 1
jmp 0x4a3b80
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
push edx
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x4a3d94
push 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x4a440d
mov eax, dword [ebp - 0xb4]
push eax
call fcn.004a3550
add esp, 4
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x90]
cmp dword [edx + 0x1c], 0
jne 0x4a3dc2
jmp 0x4a440d
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 0
jne 0x4a3de8
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x4a3e26
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0xc0], 0
je 0x4a3e76
jmp 0x4a3e62
mov ecx, dword [ebp - 0xa8]
add ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xc0]
cmp dword [eax + edx*4], 0
je 0x4a3e76
jmp 0x4a3e53
cmp dword [ebp - 0xc0], 0
je 0x4a4141
cmp dword [ebp - 0xa8], 0
je 0x4a4141
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0xa8]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xcc], eax
xor ecx, ecx
mov eax, dword [ebp - 0xcc]
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004a85e5
add esp, 4
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
je 0x4a3f21
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xcc]
mov dword [ecx], edx
push 0x4a30b0
mov eax, dword [ebp - 0xcc]
push eax
push 0x14
mov ecx, dword [ebp - 0xbc]
add ecx, 4
push ecx
call fcn.00467bb0
mov edx, dword [ebp - 0xbc]
add edx, 4
mov dword [ebp - 0xe4], edx
jmp 0x4a3f2b
mov dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xe4]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x90]
cmp dword [edx + 8], 0
jne 0x4a3f57
push 0xe
call sub.KERNEL32.dll_SetLastError
jmp 0x4a440d
mov eax, 0x14
imul ecx, eax, 0
mov edx, dword [ebp - 0x90]
add ecx, dword [edx + 8]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xb8], 0
jmp 0x4a3f98
mov eax, dword [ebp - 0xb8]
add eax, 1
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x14
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0xb8]
cmp edx, dword [ebp - 0xa8]
jae 0x4a4141
mov eax, dword [ebp - 0x94]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x94]
mov dword [ecx + 8], 0
xor edx, edx
mov eax, dword [ebp - 0x94]
mov word [eax], dx
mov ecx, dword [ebp - 0x94]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x94]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
and eax, 0x80000000
je 0x4a4037
mov ecx, dword [ebp - 0x9c]
and ecx, 0xffff
mov edx, dword [ebp - 0x94]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
jmp 0x4a413c
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x4a409b
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0xac]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0xac]
add ecx, 2
push ecx
call fcn.004a3550
add esp, 4
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0x10], 0
jne 0x4a409b
jmp 0x4a440d
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
and ecx, 0x80000000
je 0x4a40ea
mov edx, dword [ebp - 0x9c]
and edx, 0xffff
mov eax, dword [ebp - 0x94]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x9c]
and ecx, 0xffff
mov edx, dword [ebp - 0x94]
mov dword [edx + 8], ecx
jmp 0x4a413c
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.004a4420
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x4a413c
mov ecx, dword [ebp - 0xac]
add ecx, 2
push ecx
call fcn.004a3550
add esp, 4
mov edx, dword [ebp - 0x94]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0xc], 0
jne 0x4a413c
jmp 0x4a440d
jmp 0x4a3f7a
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
mov dword [ebp - 0xa0], ecx
jmp 0x4a3b80
mov edx, dword [ebp - 0x88]
mov dword [edx + 0x3e4], 0
mov dword [ebp - 0x8c], 0
jmp 0x4a4180
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x88]
movzx edx, word [ecx + 0x5e]
cmp dword [ebp - 0x8c], edx
jae 0x4a43a0
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x3e4]
push ecx
imul edx, dword [ebp - 0x8c], 0x28
imul eax, dword [ebp - 0x8c], 0x28
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + edx + 0x164]
mov ecx, dword [ebp - 0x88]
add edx, dword [ecx + eax + 0x160]
push edx
call fcn.004a3670
add esp, 8
mov edx, dword [ebp - 0x88]
mov dword [edx + 0x3e4], eax
push 0x4e5194
imul eax, dword [ebp - 0x8c], 0x28
mov ecx, dword [ebp - 0x88]
lea edx, [ecx + eax + 0x150]
push edx
call fcn.004b1700
add esp, 8
test eax, eax
jne 0x4a439b
push 0x40
imul eax, dword [ebp - 0x8c], 0x28
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x88]
add edx, dword [ecx + eax + 0x164]
push edx
lea edx, [ebp - 0x84]
push edx
call fcn.004a9d20
add esp, 0xc
cmp dword [ebp - 0x7c], 0
jne 0x4a4248
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xe8], ecx
imul edx, dword [ebp - 0x8c], 0x28
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x88]
add ecx, dword [eax + edx + 0x164]
add ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xec], ecx
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x3e4]
push edx
imul eax, dword [ebp - 0x8c], 0x28
imul ecx, dword [ebp - 0x8c], 0x28
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + eax + 0x164]
mov edx, dword [ebp - 0x88]
add eax, dword [edx + ecx + 0x160]
push eax
call fcn.004a3670
add esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0x3e4], eax
mov edx, dword [ebp - 0x88]
mov ax, word [edx + 0x5e]
sub ax, 1
mov ecx, dword [ebp - 0x88]
mov word [ecx + 0x5e], ax
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x74]
mov dword [eax + edx + 0xd0], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x70]
mov dword [eax + edx + 0xd4], ecx
mov edx, 8
imul eax, edx, 0xb
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x6c]
mov dword [ecx + eax + 0xd0], edx
mov eax, 8
imul ecx, eax, 0xb
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x68]
mov dword [edx + ecx + 0xd4], eax
mov ecx, 8
imul edx, ecx, 0xc
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x64]
mov dword [eax + edx + 0xd0], ecx
mov edx, 8
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x60]
mov dword [ecx + eax + 0xd4], edx
mov eax, dword [ebp - 0x88]
mov dword [eax + 0xb0], 0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xa8], edx
mov eax, dword [ebp - 0x88]
mov dword [eax + 0x408], 1
jmp 0x4a4171
push 0xc
call fcn.004a798e
add esp, 4
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
je 0x4a43da
mov ecx, dword [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.004a3010
mov dword [ebp - 0xf4], eax
jmp 0x4a43e4
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xf4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x88]
cmp dword [edx + 4], 0
jne 0x4a4406
push 0xe
call sub.KERNEL32.dll_SetLastError
mov eax, 1
jmp 0x4a440f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a807d
mov esp, ebp
pop ebp
ret 4