Function at 0x41947b
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x461704
call fcn.0043c338
sub esp, 0x34
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [0x46728c]
mov esi, eax
cmp dword [ebp - 0x14], esi
je 0x4194c8
lea ecx, [ebp - 0x14]
call fcn.00419a1c
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], 0xffffffff
je 0x41952c
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x14]
call dword [0x467164]
mov esi, eax
cmp dword [ebp - 0x10], esi
je 0x4194ef
lea ecx, [ebp - 0x10]
call fcn.00419a1c
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], ebx
je 0x41952c
lea eax, [ebp - 0x40]
push eax
call dword [0x467154]
mov eax, dword [ebp - 0x3c]
push eax
push ebx
push ebx
push 4
push dword [ebp - 0x10]
mov dword [ebp + 8], eax
call dword [0x467150]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x419528
lea ecx, [ebp - 0x18]
call fcn.0041ae78
mov eax, esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x41955e
call dword [0x4672f0]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0041ae78
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00419a1c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419a1c
mov eax, esi
jmp 0x4196de
cmp word [eax], 0x5a4d
mov edi, dword [0x46714c]
jne 0x419671
mov esi, dword [eax + 0x3c]
push pe_nt_image_headers32
add esi, eax
push esi
call dword [0x467160]
test eax, eax
jne 0x419640
cmp dword [esi], 0x4550
jne 0x419640
mov eax, dword [esi + 0x54]
cmp dword [ebp + 8], eax
mov dword [ebp - 0x1c], eax
jae 0x41966c
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push dword [ebp - 0x10]
call dword [0x467150]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4195d1
cmp eax, ebx
je 0x4195cc
cmp edi, ebx
je 0x4195cc
push eax
call edi
mov eax, esi
mov dword [ebp - 0x18], eax
cmp word [eax], 0x5a4d
je 0x4195e3
cmp eax, ebx
je 0x419611
cmp edi, ebx
je 0x419611
push eax
jmp 0x41960c
mov esi, dword [eax + 0x3c]
push pe_nt_image_headers32
add esi, eax
push esi
call dword [0x467160]
test eax, eax
jne 0x419600
cmp dword [esi], 0x4550
je 0x41966c
cmp dword [ebp - 0x18], ebx
je 0x419611
cmp edi, ebx
je 0x419611
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
mov esi, dword [0x4671b4]
je 0x419628
cmp esi, ebx
je 0x419628
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x419636
cmp esi, ebx
je 0x419636
push dword [ebp - 0x14]
call esi
mov eax, 0xc1
jmp 0x4196de
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041ae78
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00419a1c
cmp dword [ebp - 0x14], ebx
je 0x419636
mov eax, dword [0x4671b4]
cmp eax, ebx
je 0x419636
push dword [ebp - 0x14]
call eax
jmp 0x419636
mov eax, dword [ebp - 0x18]
jmp 0x419674
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x419682
mov dword [ecx], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x419691
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x4196a0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4196a9
mov dword [ecx], esi
cmp eax, ebx
je 0x4196b7
cmp edi, ebx
je 0x4196b7
push eax
call edi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
mov esi, dword [0x4671b4]
je 0x4196ce
cmp esi, ebx
je 0x4196ce
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4196dc
cmp esi, ebx
je 0x4196dc
push dword [ebp - 0x14]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret