Function at 0x304c190
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30f3550
push 0x306b567
mov eax, dword fs:[0]
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov eax, dword [0x30f8968]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.03044c10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x304c20c
push 6
call fcn.03022180
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x6c]
jmp 0x304c543
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx]
mov word [ebp - 0x3c], dx
movzx eax, word [ebp - 0x3c]
cmp eax, 0x5a4d
jne 0x304c377
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx], 0x4550
je 0x304c258
push 0xb
call fcn.03022180
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x304c504
mov edx, dword [ebp - 0x4c]
movzx eax, word [edx + 0x18]
push eax
call fcn.03044b70
test eax, eax
je 0x304c2aa
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
add eax, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 0x88
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x50]
mov dword [edx + 0x218], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 8]
mov dword [edx + 0x214], ecx
jmp 0x304c2da
mov edx, dword [ebp - 0x4c]
add edx, 4
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x4c]
add eax, 0x78
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x218], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
mov dword [ecx + 0x214], eax
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 0x12]
and edx, 0x200
je 0x304c2f6
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x210], 1
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 2]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x50]
movzx eax, word [edx + 0x10]
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], 0
jmp 0x304c338
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x28
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x40]
jae 0x304c375
mov eax, dword [ebp - 0x38]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0304c560
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x304c373
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x34]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [ebp - 0x30], eax
jmp 0x304c375
jmp 0x304c326
jmp 0x304c3f0
movzx edx, word [ebp - 0x3c]
cmp edx, 0x4944
jne 0x304c3da
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 8]
mov dword [ecx + 0x214], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x218], eax
mov ecx, dword [ebp - 0x64]
cmp dword [ecx + 0x20], 0
je 0x304c3d8
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x20]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x18]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
lea eax, [eax + edx + 0x30]
mov dword [ebp - 0x1c], eax
jmp 0x304c3f0
push 0xb
call fcn.03022180
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x304c504
cmp dword [ebp - 0x30], 0
jne 0x304c40c
push 0xb
call fcn.03022180
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x304c504
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
jmp 0x304c429
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
add eax, 0x1c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x30], 0
je 0x304c4ce
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x10], 0
jne 0x304c43e
jmp 0x304c417
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 2
je 0x304c455
cmp dword [ebp - 0x70], 4
je 0x304c487
jmp 0x304c4c9
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0304bfb0
test eax, eax
jne 0x304c485
push 0xb
call fcn.03022180
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x304c504
jmp 0x304c4c9
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x210], 0
je 0x304c49e
movzx eax, word [ebp - 0x3c]
cmp eax, 0x4944
jne 0x304c4a3
jmp 0x304c417
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x18]
mov dword [ebp - 0x24], edx
push 0x105
mov eax, dword [ebp + 0xc]
add eax, 0x21c
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
push ecx
call fcn.0303cbb0
jmp 0x304c417
mov dword [ebp - 4], 0xfffffffe
jmp 0x304c504
cmp dword [ebp - 0x2c], 0
je 0x304c514
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x20], 0
je 0x304c540
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x210], 0
je 0x304c540
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x21c]
test eax, eax
jne 0x304c540
push 0xc1
call fcn.03022180
jmp 0x304c543
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8