Function at 0x4a48e6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push edi
xor ebx, ebx
push 0x30
push ebx
mov edi, ebx
push eax
mov dword [ebp - 4], edi
call fcn.004ad7b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x54], eax
call fcn.004a5acf
add esp, 0x14
test eax, eax
je 0x4a4a5c
mov eax, 0x4000
push eax
mov dword [ebp - 0x28], eax
call fcn.004a4313
mov dword [ebp - 0x2c], eax
pop ecx
test eax, eax
jne 0x4a494c
mov eax, 0x4f9904
push eax
push eax
push ebx
push ebx
call fcn.004a3f60
add esp, 0x10
jmp 0x4a4a5c
lea eax, [ebp - 0x54]
push eax
push 0x40
push esi
push ebx
push ebx
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4a5c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4a499c
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x4a499c
lea ecx, [ebp - 0x54]
cdq
push ecx
push 4
lea ecx, [ebp - 0x24]
push ecx
push edx
push eax
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4a5c
cmp dword [ebp - 0x24], 0x4550
je 0x4a49ac
push 0x4f9904
push 1
push ebx
push ebx
call fcn.004a3f13
jmp 0x4a4944
mov eax, dword [esi + 0x3c]
lea edi, [eax + 4]
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [edi + 0xa0], ebx
cmp eax, 0x110
jb 0x4a49f3
lea eax, [ebp - 0x54]
push eax
push 0x90
push esi
push ebx
push 0x80
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4a5a
cmp dword [esi], 0x82c8851f
jne 0x4a49f3
mov dword [edi + 0xa0], 0x80
lea eax, [ebp - 0x54]
push eax
push 0x14
push esi
push ebx
push dword [ebp + 8]
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4a5a
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x54]
push edx
add eax, 0x14
lea edx, [ebp - 0x14]
push 2
mov ecx, ebx
mov dword [ebp + 8], eax
adc ecx, ebx
push edx
push ecx
push eax
mov dword [ebp - 0xc], ecx
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4a5a
xor ecx, ecx
mov eax, 0x10b
inc ecx
cmp word [ebp - 0x14], ax
jne 0x4a4a87
movzx eax, word [esi + 0x10]
cmp eax, 0x78
jae 0x4a4a7d
push 0x4f9904
push 1
push ebx
push ebx
call fcn.004a3f13
add esp, 0x10
mov edi, ebx
cmp dword [ebp - 0x2c], 0
je 0x4a4a6b
push dword [ebp - 0x2c]
call fcn.004a434c
pop ecx
test edi, edi
je 0x4a4a76
push edi
call fcn.004a434c
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov dword [ebp - 0x18], ecx
mov ecx, 0xe0
jmp 0x4a4aa6
mov eax, 0x20b
cmp word [ebp - 0x14], ax
jne 0x4a4a49
movzx eax, word [esi + 0x10]
mov ecx, 0x88
cmp ax, cx
jb 0x4a4a49
mov dword [ebp - 0x18], ebx
add ecx, 0x68
movzx eax, ax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jae 0x4a4ab5
mov ecx, eax
mov dword [ebp - 0x10], ecx
movzx eax, word [esi + 2]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4a5a
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x40]
mov dword [edi], eax
cmp dword [ebp - 0x18], ebx
je 0x4a4b21
lea eax, [ecx + 0x80]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x84]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x10], eax
xor eax, eax
mov byte [edi + 0x9c], bl
inc eax
cmp word [esi + 0x44], ax
sete al
mov byte [edi + 0x9d], al
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
jmp 0x4a4b64
lea eax, [ecx + 0x90]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x90]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x94]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x10], eax
xor eax, eax
inc eax
mov byte [edi + 0x9c], al
cmp word [esi + 0x44], ax
sete al
mov byte [edi + 0x9d], al
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
add eax, 4
mov dword [ebp - 0x20], edx
add ecx, dword [ebp - 0x10]
mov dword [edi + 8], eax
adc dword [ebp - 0xc], ebx
mov dword [ebp + 8], ecx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x9e], bl
mov dword [edi + 0xb0], ecx
cmp dword [edi + 0xa0], ebx
je 0x4a4bab
cmp byte [edi + 0x9c], bl
jne 0x4a4bab
cmp byte [edi + 0x9d], bl
je 0x4a4bab
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
jmp 0x4a4bb0
mov eax, ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x14], ebx
je 0x4a4bb9
test edx, edx
jne 0x4a4bc1
test eax, eax
je 0x4a4d7a
mov eax, dword [ebp - 8]
mov ecx, 0x333
mov dword [ebp - 0x14], ecx
cmp ax, cx
jbe 0x4a4bd6
mov eax, ecx
mov dword [ebp - 8], eax
mov ecx, 0xffff
cmp ax, cx
jne 0x4a4be6
lea eax, [ecx - 1]
mov dword [ebp - 8], eax
movzx eax, ax
imul eax, eax, 0x28
push eax
mov dword [ebp - 0x18], eax
call fcn.004a4313
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x4a4c16
mov eax, 0x4f9904
push eax
push eax
push ebx
push ebx
call fcn.004a3f60
add esp, 0x10
mov edi, dword [ebp - 4]
jmp 0x4a4a5c
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4c0e
mov eax, dword [ebp - 0x18]
add dword [edi + 0xb0], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x10], ebx
je 0x4a4c80
and dword [ebp - 0x10], ebx
mov eax, edx
cmp word [ebp - 0x10], cx
mov dword [ebp + 8], ebx
jmp 0x4a4c70
cmp dword [eax], 0x54494e49
jne 0x4a4c66
movzx eax, byte [eax + 4]
test al, al
je 0x4a4c77
mov eax, dword [ebp - 0x18]
add eax, 0x28
inc dword [ebp + 8]
cmp word [ebp + 8], cx
mov dword [ebp - 0x18], eax
jb 0x4a4c53
jmp 0x4a4c80
xor eax, eax
inc eax
mov byte [edi + 0x9e], al
push ecx
push edx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004a59ae
add esp, 0x10
mov dword [ebp + 8], eax
test eax, eax
je 0x4a4d7a
lea ecx, [ebp - 0x54]
push ecx
push 0x8000
push esi
push 0xa
push eax
call fcn.004a47e8
add esp, 0x14
test eax, eax
je 0x4a4d7a
mov eax, dword [eax + 4]
test eax, eax
jns 0x4a4d7a
lea ecx, [ebp - 0x54]
and eax, 0x7fffffff
add eax, dword [ebp + 8]
push ecx
push 0x8000
push esi
push 0x360
push eax
call fcn.004a47e8
add esp, 0x14
test eax, eax
je 0x4a4d7a
mov eax, dword [eax + 4]
test eax, eax
jns 0x4a4d7a
lea ecx, [ebp - 0x54]
and eax, 0x7fffffff
add eax, dword [ebp + 8]
push ecx
push 0x8000
push esi
push ebx
push eax
call fcn.004a47e8
add esp, 0x14
test eax, eax
je 0x4a4d7a
mov ecx, dword [eax + 4]
test ecx, ecx
js 0x4a4d7a
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 8]
push 0x10
push esi
add eax, ecx
push ebx
push eax
call fcn.004a4588
add esp, 0x14
test eax, eax
je 0x4a4c0e
mov eax, 0x80
cmp dword [esi + 4], eax
jne 0x4a4d7a
push dword [ebp - 8]
push dword [ebp - 4]
push eax
push dword [esi]
call fcn.004a59ae
mov ecx, eax
lea eax, [ebp - 0x54]
push eax
push 0x80
lea eax, [edi + 0x1c]
push eax
push ebx
push ecx
call fcn.004a4588
add esp, 0x24
test eax, eax
je 0x4a4c0e
mov eax, dword [ebp + 8]
mov dword [edi + 0x18], eax
xor eax, eax
lea ebx, [eax + 1]
jmp 0x4a4c0e