Function at 0x4a40fb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 2
push ebx
lea eax, [ebp + 0xe]
push dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
push edi
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
call fcn.004a456f
add esp, 0x14
test eax, eax
je 0x4a4241
cmp word [ebp + 0xe], 0x5353
jne 0x4a419a
push 0x1c
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.004a3486
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
call fcn.004a3324
mov esi, eax
add esp, 0x10
cmp esi, ebx
mov dword [ebp - 0x24], esi
je 0x4a43e8
cmp edi, ebx
je 0x4a43e8
push esi
push dword [ebp + 0x10]
push edi
call fcn.004a4bc0
add esp, 0xc
test eax, eax
je 0x4a4241
mov eax, dword [ebp - 0x3c]
mov edi, esi
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
call fcn.004a31c4
inc eax
push eax
call fcn.004a3324
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x4a43e8
push dword [ebp + 8]
call fcn.004a31c4
inc eax
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.004a3486
push 0x40
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.004a456f
add esp, 0x24
test eax, eax
je 0x4a44d7
cmp word [ebp - 0x90], 0x5a4d
jne 0x4a44d7
mov ebx, 0xf8
lea eax, [ebp - 0x188]
push ebx
push dword [ebp - 0x54]
push dword [ebp + 0x10]
push edi
push eax
call fcn.004a456f
add esp, 0x14
test eax, eax
je 0x4a4241
cmp dword [ebp - 0x188], 0x4550
jne 0x4a4241
mov esi, dword [ebp - 0x134]
sub esi, dword [ebp - 0x54]
sub esi, ebx
cmp esi, 0x10000
jb 0x4a424d
push 0x428da0
call fcn.004a40f7
mov dword [ebp - 4], 5
jmp 0x4a44e5
push esi
call fcn.004a3324
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a43e8
mov ecx, dword [ebp - 0x54]
push esi
add ecx, 0xf8
push ecx
push dword [ebp + 0x10]
push edi
push eax
call fcn.004a456f
add esp, 0x14
test eax, eax
je 0x4a4241
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x150]
lea eax, [ecx + eax - 1]
push eax
call fcn.004a3324
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x4a43e8
mov ecx, dword [ebp - 0x150]
xor edx, edx
push dword [ebp - 0x134]
lea eax, [ecx + esi - 1]
div ecx
push 0
push dword [ebp + 0x10]
push edi
mov ebx, eax
imul ebx, ecx
mov eax, ebx
push ebx
sub eax, esi
mov dword [ebp - 0x34], eax
call fcn.004a456f
add esp, 0x14
test eax, eax
je 0x4a4241
lea eax, [ebp - 0x34]
push 4
push eax
push esi
call fcn.004a3486
lea eax, [ebp - 0x14]
push 4
add esi, 4
push eax
push esi
call fcn.004a3486
xor eax, eax
add esp, 0x18
cmp word [ebp - 0x182], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], eax
jbe 0x4a4382
mov eax, dword [ebp - 0xc]
lea esi, [eax + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4a4370
mov eax, dword [esi]
test eax, eax
je 0x4a4352
push eax
mov eax, dword [esi - 4]
push ecx
add eax, ebx
push dword [ebp + 0x10]
push edi
push eax
call fcn.004a456f
add esp, 0x14
test eax, eax
je 0x4a4241
mov ecx, dword [esi - 4]
cmp ecx, dword [ebp - 0x108]
ja 0x4a4352
mov eax, dword [esi]
lea edx, [ecx + eax]
cmp edx, dword [ebp - 0x108]
jbe 0x4a4352
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi - 8]
mov ecx, dword [esi]
cmp eax, ecx
jbe 0x4a4370
sub eax, ecx
push eax
mov eax, dword [esi - 4]
add eax, ecx
push 0
add eax, ebx
push eax
call fcn.004a349f
add esp, 0xc
movzx eax, word [ebp - 0x182]
inc dword [ebp - 8]
add esi, 0x28
cmp dword [ebp - 8], eax
jb 0x4a430b
push dword [ebp - 0xc]
call fcn.004a336a
mov eax, ebx
and dword [ebp - 0xc], 0
sub eax, dword [ebp - 0x154]
push eax
mov eax, dword [ebp - 0xe8]
add eax, ebx
push eax
mov eax, dword [ebp - 0x138]
add eax, ebx
push eax
push ebx
call fcn.004a45a0
add esp, 0x14
test eax, eax
je 0x4a4241
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x4a43cf
mov edi, dword [ebp - 0x104]
mov esi, dword [ebp - 0x108]
jmp 0x4a43d2
mov esi, dword [ebp - 0x28]
test edi, edi
je 0x4a44a3
push edi
call fcn.004a3324
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x4a43f4
mov dword [ebp - 4], 4
jmp 0x4a44e5
lea ecx, [esi + ebx]
push edi
push ecx
push eax
call fcn.004a3486
mov eax, dword [ebp - 0x108]
add esp, 0xc
mov edi, eax
mov dword [ebp + 0x10], eax
sub edi, esi
add edi, dword [ebp - 0x10]
cmp dword [edi], 0
je 0x4a4492
mov eax, edi
mov dword [ebp - 8], edi
mov eax, dword [eax + 0xc]
sub eax, dword [ebp + 0x10]
add eax, edi
push eax
mov dword [ebp - 0x30], eax
call fcn.004a49fe
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x4a44c0
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x10]
sub esi, dword [ebp + 0x10]
add esi, edi
mov eax, dword [esi]
test eax, eax
je 0x4a4484
test eax, 0x80000000
jne 0x4a44c9
sub eax, dword [ebp + 0x10]
add eax, edi
add eax, 2
push eax
push dword [ebp - 0x20]
call fcn.004a4a48
pop ecx
mov dword [esi], eax
test eax, eax
pop ecx
je 0x4a44c9
mov eax, esi
push 4
sub eax, edi
push esi
add eax, dword [ebp + 0x10]
add eax, ebx
push eax
call fcn.004a3486
add esp, 0xc
add esi, 4
jmp 0x4a4444
mov eax, dword [ebp - 8]
add eax, 0x14
mov dword [ebp - 8], eax
cmp dword [eax], 0
jne 0x4a441c
push dword [ebp - 0x10]
and dword [ebp - 0x20], 0
call fcn.004a336a
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x160]
mov esi, dword [ebp - 0x1c]
push 0
push 1
pop edi
add ebx, eax
push edi
push esi
call ebx
test eax, eax
jne 0x4a44d2
mov dword [ebp - 4], edi
jmp 0x4a44e5
mov dword [ebp - 4], 3
jmp 0x4a44e5
mov dword [ebp - 4], 6
jmp 0x4a44e5
mov dword [ebp - 0x18], esi
jmp 0x4a44de
mov dword [ebp - 4], 5
xor esi, esi
cmp dword [ebp - 0x18], esi
jne 0x4a452a
push dword [ebp - 4]
lea eax, [ebp - 0x1b0]
push dword [ebp + 8]
push 0x428d80
push eax
call dword [0x423438]
add esp, 0x10
lea eax, [ebp - 0x1b0]
push eax
call fcn.004a40f7
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x4a451c
push dword [ebp - 0x30]
call fcn.004a4994
pop ecx
cmp dword [ebp - 0x14], esi
je 0x4a452a
push dword [ebp - 0x14]
call fcn.004a336a
pop ecx
cmp dword [ebp - 0x24], esi
je 0x4a4538
push dword [ebp - 0x24]
call fcn.004a336a
pop ecx
cmp dword [ebp - 0xc], esi
je 0x4a4546
push dword [ebp - 0xc]
call fcn.004a336a
pop ecx
cmp dword [ebp - 0x10], esi
je 0x4a4554
push dword [ebp - 0x10]
call fcn.004a336a
pop ecx
cmp dword [ebp - 0x18], esi
jne 0x4a4567
cmp dword [ebp - 0x1c], esi
je 0x4a4567
push dword [ebp - 0x1c]
call fcn.004a336a
pop ecx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret