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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30e8560
push 0x307c3cb
mov eax, dword fs:[0]
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov eax, dword [0x30ed8a8]
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.03042420
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x304998c
push 6
call fcn.030226d0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x6c]
jmp 0x3049cc3
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx]
mov word [ebp - 0x3c], dx
movzx eax, word [ebp - 0x3c]
cmp eax, 0x5a4d
jne 0x3049af7
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 0x30499d8
push 0xb
call fcn.030226d0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3049c84
mov edx, dword [ebp - 0x4c]
movzx eax, word [edx + 0x18]
push eax
call fcn.03042380
test eax, eax
je 0x3049a2a
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 0x3049a5a
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 0x3049a76
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 0x3049ab8
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 0x3049af5
mov eax, dword [ebp - 0x38]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.03049ce0
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x3049af3
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 0x3049af5
jmp 0x3049aa6
jmp 0x3049b70
movzx edx, word [ebp - 0x3c]
cmp edx, 0x4944
jne 0x3049b5a
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 0x3049b58
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 0x3049b70
push 0xb
call fcn.030226d0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3049c84
cmp dword [ebp - 0x30], 0
jne 0x3049b8c
push 0xb
call fcn.030226d0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3049c84
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
jmp 0x3049ba9
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 0x3049c4e
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x10], 0
jne 0x3049bbe
jmp 0x3049b97
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 2
je 0x3049bd5
cmp dword [ebp - 0x70], 4
je 0x3049c07
jmp 0x3049c49
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.03049730
test eax, eax
jne 0x3049c05
push 0xb
call fcn.030226d0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3049c84
jmp 0x3049c49
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x210], 0
je 0x3049c1e
movzx eax, word [ebp - 0x3c]
cmp eax, 0x4944
jne 0x3049c23
jmp 0x3049b97
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.0303a730
jmp 0x3049b97
mov dword [ebp - 4], 0xfffffffe
jmp 0x3049c84
cmp dword [ebp - 0x2c], 0
je 0x3049c94
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x20], 0
je 0x3049cc0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x210], 0
je 0x3049cc0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x21c]
test eax, eax
jne 0x3049cc0
push 0xc1
call fcn.030226d0
jmp 0x3049cc3
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