Function at 0x304cda6
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x40
push 0x310b7b0
call fcn.0307e324
mov dword [ebp - 0x20], edx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov eax, ebx
mov dword [ebp - 0x24], eax
xor esi, esi
inc esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], ebx
call fcn.030483f0
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x304cdea
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
jmp 0x304d05e
movzx eax, word [edi]
mov dword [ebp - 0x48], eax
mov ecx, 0x5a4d
cmp ax, cx
jne 0x304cf74
mov edx, dword [edi + 0x3c]
cmp dword [edx + edi], 0x4550
je 0x304ce28
push 0xb
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
mov eax, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x304d031
mov eax, 0x20b
mov ecx, dword [ebp - 0x20]
cmp word [edx + edi + 0x18], ax
lea eax, [edi + 0x88]
je 0x304ce40
lea eax, [edi + 0x78]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + edi + 0x50]
mov dword [ecx + 0x218], eax
mov eax, dword [edx + edi + 8]
mov dword [ecx + 0x214], eax
mov eax, 0x200
test word [edx + edi + 0x16], ax
je 0x304ce6b
mov dword [ecx + 0x210], esi
movzx eax, word [edx + edi + 6]
mov dword [ebp - 0x3c], eax
movzx ecx, word [edx + edi + 0x14]
mov esi, dword [edi + 0x3c]
add esi, 0x18
add esi, ecx
add esi, edi
mov eax, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x44], esi
cmp eax, dword [ebp - 0x3c]
jae 0x304cf04
mov edx, ebx
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x30], edx
je 0x304cefb
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x2c]
jb 0x304ced7
mov ecx, dword [esi + 0x10]
add ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov edi, dword [ebp - 0x1c]
add eax, dword [edi + 0x30]
cmp eax, ecx
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
ja 0x304ceda
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0xc]
add edx, dword [ecx + 0x30]
mov dword [ebp - 0x40], edx
jmp 0x304ceda
mov ecx, dword [ebp - 0x1c]
test edx, edx
je 0x304cefb
mov dword [ebp - 0x3c], edx
mov eax, dword [ecx + 0x34]
xor edx, edx
push 0x1c
pop esi
div esi
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x3c]
jmp 0x304cf0b
inc eax
mov dword [ebp - 0x2c], eax
add esi, 0x28
jmp 0x304ce87
mov edx, dword [ebp - 0x20]
mov esi, ebx
mov ecx, ebx
push 0x1c
pop eax
test ecx, ecx
je 0x304ce0a
add esi, edi
mov dword [ebp - 0x4c], esi
test ecx, ecx
je 0x304cfee
cmp dword [esi + 0x10], ebx
je 0x304cfdd
mov eax, dword [esi + 0xc]
dec eax
dec eax
je 0x304cfc5
dec eax
dec eax
jne 0x304cfda
cmp dword [edx + 0x210], ebx
je 0x304cfda
mov eax, 0x4944
cmp word [ebp - 0x48], ax
je 0x304cfda
mov ecx, dword [esi + 0x18]
add ecx, 0xc
push 0x105
add edx, 0x21c
add ecx, edi
call fcn.030426c9
jmp 0x304cfd7
mov esi, 0x4944
cmp ax, si
jne 0x304ce0a
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x214], eax
mov eax, dword [edi + 0x14]
mov dword [edx + 0x218], eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x304cf07
xor edx, edx
push 0x1c
pop esi
div esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], eax
imul ecx, dword [edi + 0x18], 0x28
mov esi, dword [edi + 0x1c]
add ecx, 0x30
add esi, ecx
mov edx, dword [ebp - 0x20]
mov ecx, eax
jmp 0x304cf0b
mov ecx, dword [esi + 0x18]
add ecx, edi
call fcn.0304cc6f
test eax, eax
je 0x304ce0a
mov ecx, dword [ebp - 0x24]
push 0x1c
pop eax
dec ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], ecx
add esi, eax
mov edx, dword [ebp - 0x20]
jmp 0x304cf18
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x304d031
test edi, edi
je 0x304d03c
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x304d060
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x210], ebx
je 0x304d060
cmp word [ecx + 0x21c], bx
jne 0x304d060
push 0xc1
call esi
xor eax, eax
call fcn.0307e369
ret