Function at 0x4352c5
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x472e58
call fcn.004555fc
sub esp, 0x38
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [0x476324]
mov esi, eax
cmp dword [ebp - 0x18], esi
je 0x435316
lea ecx, [ebp - 0x18]
call fcn.00406803
mov dword [ebp - 0x18], esi
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x18]
call dword [0x47632c]
mov esi, eax
cmp dword [ebp - 0x14], esi
je 0x435337
lea ecx, [ebp - 0x14]
call fcn.004115d5
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], ebx
jne 0x435364
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406803
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00436721
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004115d5
jmp 0x435498
lea eax, [ebp - 0x44]
push eax
call dword [0x476170]
mov eax, dword [ebp - 0x40]
push eax
push ebx
push ebx
push 4
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call dword [0x476330]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x435398
lea ecx, [ebp - 0x10]
call fcn.00436721
mov eax, esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x43533c
cmp word [eax], 0x5a4d
mov edi, dword [0x476334]
jne 0x4354b4
mov esi, dword [eax + 0x3c]
push pe_nt_image_headers32
add esi, eax
mov dword [ebp + 8], eax
push esi
call dword [0x47618c]
test eax, eax
jne 0x4354fe
cmp dword [esi], 0x4550
jne 0x4354fe
mov eax, dword [esi + 0x54]
cmp dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
jae 0x43549c
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [0x476330]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x435412
cmp eax, ebx
je 0x43540d
cmp edi, ebx
je 0x43540d
push eax
call edi
mov eax, esi
mov dword [ebp - 0x10], eax
cmp word [eax], 0x5a4d
mov dword [ebp + 8], eax
je 0x435443
cmp dword [ebp - 0x18], 0xffffffff
mov esi, dword [0x476338]
je 0x435438
cmp esi, ebx
je 0x435438
push dword [ebp - 0x18]
call esi
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x43548a
cmp edi, ebx
je 0x43548a
push eax
jmp 0x435485
mov esi, dword [eax + 0x3c]
push pe_nt_image_headers32
add esi, eax
push esi
call dword [0x47618c]
test eax, eax
jne 0x435460
cmp dword [esi], 0x4550
je 0x43549c
cmp dword [ebp - 0x18], 0xffffffff
mov esi, dword [0x476338]
je 0x435479
cmp esi, ebx
je 0x435479
push dword [ebp - 0x18]
call esi
or dword [ebp - 0x18], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x43548a
cmp edi, ebx
je 0x43548a
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x435498
cmp esi, ebx
je 0x435498
push dword [ebp - 0x14]
call esi
xor eax, eax
jmp 0x4354ef
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00435540
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp dword [ebp - 0x18], 0xffffffff
mov esi, dword [0x476338]
je 0x4354d0
cmp esi, ebx
je 0x4354d0
push dword [ebp - 0x18]
call esi
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4354de
cmp edi, ebx
je 0x4354de
push eax
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4354ec
cmp esi, ebx
je 0x4354ec
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406803
cmp dword [ebp - 0x10], ebx
je 0x435520
mov eax, dword [0x476334]
cmp eax, ebx
je 0x435520
push dword [ebp - 0x10]
call eax
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x435498
mov eax, dword [0x476338]
cmp eax, ebx
je 0x435498
push dword [ebp - 0x14]
call eax
jmp 0x435498