Function at 0x434420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, esp
cmp byte [0x44015c], 0
jne 0x43457f
mov byte [0x44015c], 1
mov edx, dword [0x438004]
movzx ecx, word [edx]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x43447f
mov ecx, dword [edx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x43447f
movzx edx, word [edx + ecx + 0x18]
cmp edx, 0x10b
mov edx, dword [0x438004]
jne 0x43447f
movzx eax, word [edx + ecx + 6]
shl eax, 2
lea eax, [eax + eax*4]
add eax, 3
and eax, 0xfffffffc
call fcn.00436a70
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
mov dword [0x456344], eax
mov dword [0x4401f4], 0
mov ebx, 0x43f010
mov eax, 0x43f010
sub eax, ebx
cmp eax, 7
jle 0x43457f
cmp eax, 0xc
jl 0x4344e0
cmp dword [0x43f010], 0
jne 0x4344ef
cmp dword [0x43f014], 0
jne 0x4344ef
cmp dword [0x43f018], 0
mov eax, 0x43f010
mov ebx, 0x43f01c
cmovne ebx, eax
cmp dword [ebx], 0
jne 0x4344ef
cmp dword [ebx + 4], 0
je 0x434587
cmp ebx, 0x43f010
jae 0x43452a
lea edi, [esi + 0x14]
nop word [eax + eax]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, dword [ecx + edx]
add ecx, edx
mov dword [esi + 0x14], eax
mov edx, edi
push 4
call fcn.004346c0
mov edx, dword [0x438004]
add esp, 4
add ebx, 8
cmp ebx, 0x43f010
jb 0x434500
mov eax, dword [0x4401f4]
test eax, eax
jle 0x43457f
xor edi, edi
mov ebx, 8
mov ecx, dword [0x456344]
jmp 0x434558
inc edi
add ebx, 0x14
cmp edi, eax
jge 0x43457f
mov edx, dword [ecx + ebx - 8]
test edx, edx
je 0x434550
lea eax, [esi + 0x1c]
push eax
push edx
push dword [ecx + ebx]
push dword [ecx + ebx - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x456344]
mov eax, dword [0x4401f4]
jmp 0x434550
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x4346a7
add ebx, 0xc
cmp ebx, 0x43f010
jb 0x4345c6
jmp 0x43452a
mov eax, 4
lea edx, [esi + 0x18]
push eax
call fcn.004346c0
add esp, 4
add ebx, 0xc
cmp ebx, 0x43f010
mov edx, dword [0x438004]
jae 0x43452a
mov eax, dword [ebx + 4]
add eax, edx
mov edi, dword [ebx]
mov ecx, dword [ebx + 8]
mov edx, dword [edi + edx]
mov dword [esi + 0xc], edx
cmp cl, 0x20
mov dword [esi + 0x10], ecx
movzx edx, cl
mov dword [esi + 8], eax
je 0x434614
cmp edx, 0x10
je 0x434601
cmp edx, 8
jne 0x43469c
mov ecx, edi
movzx eax, byte [eax]
lea edi, [eax - 0x100]
test al, al
jmp 0x43460f
mov ecx, edi
movzx eax, word [eax]
lea edi, [eax - 0x10000]
test ax, ax
cmovns edi, eax
jmp 0x434618
mov ecx, edi
mov edi, dword [eax]
add ecx, dword [0x438004]
sub edi, ecx
add edi, dword [esi + 0xc]
mov dword [esi + 0x18], edi
cmp edx, 0x1f
ja 0x434654
mov eax, 0xffffffff
mov ecx, edx
shl eax, cl
test dl, 0x20
mov ecx, 0
cmovne eax, ecx
not eax
cmp edi, eax
jg 0x43468a
mov ecx, edx
dec cl
mov eax, 0xffffffff
shl eax, cl
cmp edi, eax
jl 0x43468a
mov eax, dword [esi + 0x10]
cmp al, 8
je 0x43467d
movzx eax, al
cmp eax, 0x20
mov ecx, dword [esi + 8]
je 0x4345a0
cmp eax, 0x10
jne 0x4345b1
mov eax, 2
jmp 0x4345a5
mov eax, 1
mov ecx, dword [esi + 8]
jmp 0x4345a5
push edi
push dword [esi + 0xc]
push dword [esi + 8]
push edx
push str._d_bit_pseudo_relocation_at__p_out_of_range__targeting__p__yielding_the_value__p._n
call fcn.00434860
push edx
push str.__Unknown_pseudo_relocation_bit_size__d._n
call fcn.00434860
push eax
push str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.00434860
int3