Function at 0x4306c7
Capabilities:
Access peb ldr_data
Parse pe header
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
je 0x4306f2
mov dword [ebp + 8], str.Wrong_PE_file
push 0x457030
lea eax, [ebp + 8]
push eax
call fcn.0041ca9b
mov eax, dword [edi + 0x3c]
lea ebx, [eax + edi]
cmp dword [ebx], 0x4550
je 0x430711
mov dword [ebp - 0xc], str.Wrong_PE_signature
push 0x457030
lea eax, [ebp - 0xc]
jmp 0x4306ec
mov eax, 0x10b
cmp word [ebx + 0x18], ax
je 0x43072d
mov dword [ebp - 8], str.Not_normal_PE_format
push 0x457030
lea eax, [ebp - 8]
jmp 0x4306ec
movzx eax, word [ebx + 6]
mov esi, dword [ebx + 0x34]
xor edx, edx
mov dword [ebp - 0x18], esi
test eax, eax
jle 0x430759
lea ecx, [ebx + 0x100]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp edx, eax
jae 0x430751
mov edx, eax
add ecx, 0x28
dec dword [ebp - 8]
jne 0x430746
cmp dword [ebx + 0xa4], 0
push 0x40
push 0x3000
push edx
je 0x43078f
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x4307b1
mov dword [ebp - 4], str.error_allocating_virtual_memory
push 0x457030
lea eax, [ebp - 4]
jmp 0x4306ec
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4307ae
mov dword [ebp - 0x10], str.error_allocating_virtual_memory
push 0x457030
lea eax, [ebp - 0x10]
jmp 0x4306ec
mov dword [ebp - 4], esi
movzx eax, word [ebx + 6]
mov ecx, dword [edi + 0x3c]
imul eax, eax, 0x28
lea eax, [eax + ecx + 0xf8]
push eax
push edi
push esi
call fcn.0041ed70
and dword [ebp - 8], 0
xor eax, eax
add esp, 0xc
cmp ax, word [ebx + 6]
jae 0x430805
lea edi, [ebx + 0x10c]
mov eax, dword [edi]
add eax, dword [ebp + 8]
push dword [edi - 4]
push eax
mov eax, dword [edi - 8]
add eax, esi
push eax
call fcn.0041ed70
movzx eax, word [ebx + 6]
add esp, 0xc
inc dword [ebp - 8]
add edi, 0x28
cmp dword [ebp - 8], eax
jl 0x4307df
xor edi, edi
cmp dword [ebx + 0x84], edi
je 0x4308d9
push edi
push edi
push 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x43083b
mov dword [ebp - 0x14], str.error_creating_executable_heap
push 0x457030
lea eax, [ebp - 0x14]
jmp 0x4306ec
mov edi, dword [ebx + 0x80]
add edi, esi
jmp 0x4308d0
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
add eax, esi
mov esi, dword [edi]
add esi, dword [ebp - 4]
mov dword [ebp + 8], eax
jmp 0x4308c4
jns 0x43086f
and eax, 0xffff
jmp 0x430877
mov ecx, dword [ebp - 4]
add eax, ecx
add eax, 2
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xc
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43096e
mov ecx, dword [ebp - 0xc]
mov edx, 0xdeadbeaf
xor ecx, edx
mov dword [eax + 1], ecx
mov ecx, dword [ebp + 8]
mov byte [eax], 0xb8
mov byte [eax + 5], 0x35
mov dword [eax + 6], edx
mov byte [eax + 0xa], 0xff
mov byte [eax + 0xb], 0xe0
add esi, 4
add dword [ebp + 8], 4
mov dword [ecx], eax
mov eax, dword [esi]
test eax, eax
jne 0x430866
mov esi, dword [ebp - 4]
add edi, 0x14
cmp dword [edi], 0
jne 0x430848
mov ecx, dword [ebx + 0xa4]
mov eax, esi
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x43094c
test eax, eax
je 0x43094c
mov eax, dword [ebx + 0xa0]
add eax, esi
add ecx, eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jae 0x43094c
mov ecx, dword [eax]
and dword [ebp + 8], 0
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
shr ecx, 1
sub ecx, 4
add eax, 8
test ecx, ecx
jbe 0x430947
movzx edi, byte [eax + 1]
movzx edx, word [eax]
shr edi, 4
and edx, 0xfff
test edi, edi
je 0x43093d
cmp edi, 3
jne 0x430982
mov edi, dword [ebp - 0x18]
add edx, edi
mov edi, dword [ebp - 0x14]
add edx, esi
add dword [edx], edi
inc dword [ebp + 8]
inc eax
inc eax
cmp dword [ebp + 8], ecx
jb 0x430918
cmp eax, dword [ebp - 0x10]
jb 0x430900
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 8]
mov eax, dword fs:[0x30]
mov dword [eax + 8], esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
xor edi, edi
jmp 0x4309a0
mov dword [ebp - 0x18], str.error_allocating_executable_memory
push 0x457030
lea eax, [ebp - 0x18]
jmp 0x4306ec
mov dword [ebp - 0x1c], str.unknown_relocation
push 0x457030
lea eax, [ebp - 0x1c]
jmp 0x4306ec
cmp dword [eax + 0x18], ecx
jne 0x43099e
mov dword [eax + 0x18], esi
mov eax, dword [eax]
cmp dword [eax + 0x18], edi
jne 0x430996
mov eax, dword [ebx + 0x28]
add eax, esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]