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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [ebp + 8], 0
je 0x153d5
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x153d5
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x153d5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x7c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x28], edx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x151ef
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
jmp 0x151ff
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.000150e0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], ecx
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x1521b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x30], ecx
jmp 0x1522e
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.000150e0
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1524a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x34], edx
jmp 0x1525d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.000150e0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x15279
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x38], eax
jmp 0x1528c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.000150e0
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 5], 1
mov dword [ebp - 0x10], 0
jmp 0x152b2
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
jae 0x153d5
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebp - 0x28]
jb 0x152f2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*4], ecx
jb 0x153d0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x15325
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
jne 0x15321
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.000150e0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, dword [edx + ecx*4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dl, byte [ecx]
mov byte [ebp - 0x41], dl
mov eax, dword [ebp - 0x3c]
cmp dl, byte [eax]
jne 0x1537a
cmp byte [ebp - 0x41], 0
je 0x15371
mov ecx, dword [ebp - 0x40]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x42], dl
mov eax, dword [ebp - 0x3c]
cmp dl, byte [eax + 1]
jne 0x1537a
add dword [ebp - 0x40], 2
add dword [ebp - 0x3c], 2
cmp byte [ebp - 0x42], 0
jne 0x1533d
mov dword [ebp - 0x48], 0
jmp 0x15382
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0
jne 0x153d0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x153ab
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x50], edx
jmp 0x153c8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.000150e0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
jmp 0x153d7
jmp 0x152a9
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10