Function at 0x3034175
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x310e008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x25b0
mov edi, edx
push 0
push ebx
mov dword [ebp - 0x288], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [edi + 0x1e]
mov esi, 0x1002
mov edx, ebx
push esi
call fcn.03042678
mov eax, dword [edi + 8]
lea edx, [ebx + 0x1010]
mov dword [ebx + 0x1008], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x100c], eax
mov ecx, dword [edi + 0x120]
push esi
call fcn.03042678
mov ecx, dword [ebx + 0x1008]
mov eax, ecx
mov edx, dword [ebx + 0x100c]
or eax, edx
jne 0x30341ff
push 0x3016888
call dword [0x3113310]
pop ecx
jmp 0x3034649
mov eax, dword [edi + 0x540]
mov dword [ebx + 0x202c], eax
mov eax, dword [edi + 0x4790]
mov dword [ebx + 0x2040], eax
mov eax, dword [edi + 0x540]
cmp eax, 8
jne 0x303422a
xor eax, eax
inc eax
jmp 0x303464b
cmp eax, 5
jne 0x3034239
mov dword [ebx + 0x2040], 0x80000000
lea eax, [ebp - 0x280]
push eax
push 0x40
lea eax, [ebp - 0x7c]
push eax
push edx
push ecx
call dword [0x3113324]
test eax, eax
je 0x303462f
cmp dword [ebp - 0x280], 0x40
jne 0x303462f
mov dx, word [ebp - 0x7c]
xor eax, eax
mov word [ebx + 0x2018], dx
mov esi, 0x105
cmp dword [edi + 0x598], eax
setne al
mov dword [ebx + 0x2044], eax
mov eax, dword [edi + 0x134]
mov dword [ebx + 0x2150], eax
mov ecx, dword [edi + 0x128]
test ecx, ecx
je 0x30342aa
push esi
lea edx, [ebx + 0x2048]
call fcn.03042678
mov dx, word [ebp - 0x7c]
mov eax, dword [edi + 0x130]
mov dword [ebx + 0x2260], eax
mov ecx, dword [edi + 0x124]
test ecx, ecx
je 0x30342d0
push esi
lea edx, [ebx + 0x2154]
call fcn.03042678
mov dx, word [ebp - 0x7c]
mov eax, dword [edi + 0x12c]
mov dword [ebx + 0x225c], eax
mov eax, 0x5a4d
cmp dx, ax
jne 0x3034531
lea eax, [ebp - 0x280]
mov esi, 0xf8
push eax
push esi
lea eax, [ebp - 0x174]
push eax
mov eax, dword [ebp - 0x40]
cdq
add eax, dword [ebx + 0x1008]
adc edx, dword [ebx + 0x100c]
push edx
push eax
call dword [0x3113324]
test eax, eax
je 0x30343ef
cmp dword [ebp - 0x280], esi
jne 0x30343ef
cmp dword [ebp - 0x174], 0x4550
movzx eax, word [ebp - 0x170]
mov dword [ebx + 0x2014], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebx + 0x2030], eax
je 0x3034383
lea eax, [esi + 0xf]
cmp word [ebp - 0x15c], ax
jne 0x3034379
mov eax, dword [ebp - 0x158]
lea esi, [ebp - 0x170]
and dword [ebx + 0x2034], 0
mov dword [ebx + 0x2038], eax
jmp 0x303445c
push 0x30168f0
jmp 0x30341f3
mov eax, 0x20b
cmp word [ebp - 0x15c], ax
jne 0x303440b
lea eax, [ebp - 0x280]
mov esi, pe_nt_image_headers32
push eax
push esi
lea eax, [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x40]
cdq
add eax, dword [ebx + 0x1008]
adc edx, dword [ebx + 0x100c]
push edx
push eax
call dword [0x3113324]
test eax, eax
je 0x30343ef
cmp dword [ebp - 0x280], esi
jne 0x30343ef
mov eax, dword [ebp - 0x224]
lea esi, [ebp - 0x278]
mov dword [ebx + 0x2034], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx + 0x2038], eax
lea eax, [ebp - 0x1f4]
jmp 0x303442f
mov eax, dword [ebp - 0x40]
cdq
add eax, dword [ebx + 0x1008]
adc edx, dword [ebx + 0x100c]
push edx
push eax
push 0x30168cc
jmp 0x3034640
mov eax, dword [ebp - 0x124]
lea esi, [ebp - 0x170]
mov ecx, dword [ebp - 0x11c]
mov dword [ebx + 0x2038], eax
lea eax, [ebp - 0xfc]
mov dword [ebx + 0x2034], ecx
mov ecx, dword [eax + 0x30]
xor edx, edx
add ecx, dword [ebx + 0x1008]
mov eax, dword [eax + 0x34]
adc edx, dword [ebx + 0x100c]
mov dword [ebx + 0x2024], edx
xor edx, edx
push 0x1c
mov dword [ebx + 0x2020], ecx
pop ecx
div ecx
mov dword [ebx + 0x2028], eax
movzx eax, word [esi + 0x12]
mov dword [ebx + 0x203c], eax
movzx eax, word [esi + 2]
mov dword [0x31131e0], eax
imul eax, eax, 0x28
mov dword [0x31131ec], esi
push eax
mov dword [ebp - 0x284], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [0x31131e4], eax
pop ecx
test eax, eax
jne 0x3034499
push 0x3016ec0
jmp 0x30341f3
movzx eax, word [esi + 0x10]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [ebp - 0x40]
cdq
add esi, eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x284]
adc ecx, edx
add esi, dword [ebx + 0x1008]
push dword [0x31131e4]
adc ecx, dword [ebx + 0x100c]
add esi, 0x18
mov dword [0x31131c8], esi
adc ecx, 0
push ecx
push esi
mov dword [0x31131cc], ecx
call dword [0x3113324]
test eax, eax
jne 0x30344f8
push 0x3016ef0
call dword [0x3113310]
pop ecx
jmp 0x30345cf
imul eax, dword [0x31131e0], 0x28
cmp dword [ebp - 0x280], eax
je 0x30345cf
push 0x3016f0c
call dword [0x3113310]
mov eax, dword [ebp - 0x280]
xor edx, edx
pop ecx
push 0x28
pop ecx
div ecx
movzx eax, ax
mov dword [0x31131e0], eax
jmp 0x30345cf
mov eax, 0x4944
cmp dx, ax
jne 0x3034625
lea eax, [ebp - 0x280]
push eax
push 0x30
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 0x100c]
push dword [ebx + 0x1008]
call dword [0x3113324]
test eax, eax
je 0x3034612
cmp dword [ebp - 0x280], 0x30
jne 0x3034612
movzx eax, word [ebp - 0x34]
mov dword [ebx + 0x2014], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x2030], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x2034], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x2038], eax
movzx eax, word [ebp - 0x32]
mov dword [ebx + 0x203c], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x30345cf
push 0x1c
xor edx, edx
pop ecx
div ecx
imul ecx, dword [ebp - 0x20], 0x28
mov dword [ebx + 0x2028], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x30
add eax, ecx
and dword [ebx + 0x2024], 0
mov dword [ebx + 0x2020], eax
mov eax, dword [edi + 0x534]
lea esi, [edi + 0x4918]
mov edx, dword [ebp - 0x288]
lea edi, [ebx + 0x2268]
mov dword [ebx + 0x2264], eax
mov ecx, 0xc9
rep movsd dword es:[edi], dword [esi]
cmp dword [edx + 0x4794], 0
je 0x3034222
lea eax, [ebx + 0x258c]
push eax
call fcn.0302d3b1
jmp 0x3034222
push dword [ebx + 0x100c]
push dword [ebx + 0x1008]
push 0x301690c
jmp 0x3034640
push 0x3016934
jmp 0x30341f3
push dword [ebx + 0x100c]
push dword [ebx + 0x1008]
push 0x30168ac
call dword [0x3113310]
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0307c5f7
mov esp, ebp
pop ebp
ret 4