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

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x168
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x30], edx
xor edi, edi
test esi, esi
je 0x49d920
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x49d920
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x49d920
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x49d74a
mov ecx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
jmp 0x49d750
mov ecx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
lea edx, [eax + esi]
mov dword [ebp - 8], ecx
mov eax, dword [edx + 0x24]
add eax, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x20]
add eax, esi
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x1c]
add eax, esi
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [edx + 0x14], eax
jbe 0x49d99a
cmp dword [ebp - 0x30], 0xffff
ja 0x49d7a2
movzx eax, ax
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], ecx
add ecx, dword [edx + 0x10]
movzx eax, ax
cmp eax, ecx
je 0x49d817
mov eax, dword [ebp - 0x28]
jmp 0x49d805
cmp eax, dword [edx + 0x18]
jae 0x49d920
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
movzx edx, word [edx + eax*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x30]
add ecx, esi
mov dword [ebp - 0x4c], edx
mov dl, byte [ecx]
cmp dl, byte [eax]
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x24]
jne 0x49d7f0
cmp byte [ebp - 1], 0
je 0x49d7ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x24]
jne 0x49d7f0
add ecx, 2
add eax, 2
cmp byte [ebp - 1], 0
jne 0x49d7c0
xor ecx, ecx
jmp 0x49d7f5
sbb ecx, ecx
or ecx, 1
mov eax, dword [ebp - 0x4c]
movzx eax, ax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
test ecx, ecx
je 0x49d817
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [edx + 0x14]
jb 0x49d77f
jmp 0x49d99a
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x2c]
movzx eax, ax
mov edi, dword [edi + eax*4]
add edi, esi
cmp edi, edx
jb 0x49d99a
mov eax, dword [ebp - 8]
add eax, edx
cmp edi, eax
ja 0x49d99a
push 0x100
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00438880
add esp, 0xc
push edi
call fcn.00444962
mov edi, eax
mov dword [ebp - 0x60], 0xdc604787
pop ecx
mov eax, 0xbc4104cb
mov dword [ebp - 0x20], 0xdc6047a9
mov dword [ebp - 0x5c], eax
mov ecx, 0xdbace002
mov edx, 0xd1458282
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x54], edx
movaps xmm1, xmmword [ebp - 0x60]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
pxor xmm1, xmmword [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x2c], edi
movaps xmmword [ebp - 0x60], xmm1
call fcn.00437980
pop ecx
mov esi, eax
lea eax, [ebp - 0x160]
pop ecx
push edi
push eax
mov byte [esi], 0
inc esi
call dword [0x4d60f4]
mov eax, 0xbc4104cb
mov dword [ebp - 0x20], 0xb00c2387
mov dword [ebp - 0x1c], eax
mov ecx, 0xdbace002
mov dword [ebp - 0x3c], eax
mov edx, 0xd1458282
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edx
movaps xmm1, xmmword [ebp - 0x20]
push eax
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x160]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x40], 0xdc6047a9
pxor xmm1, xmmword [ebp - 0x40]
push eax
movaps xmmword [ebp - 0x20], xmm1
call dword [0x4d61ac]
lea eax, [ebp - 0x160]
push eax
call dword [0x4d60f0]
mov dword [ebp - 8], eax
test eax, eax
jne 0x49d92b
push edi
call fcn.00444494
pop ecx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 0xbc4104cb
mov dword [ebp - 0x20], 0xdc60478a
mov dword [ebp - 0x1c], eax
mov ecx, 0xdbace002
mov edx, 0xd1458282
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edx
movaps xmm1, xmmword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x40], 0xdc6047a9
pxor xmm1, xmmword [ebp - 0x40]
push eax
push esi
movaps xmmword [ebp - 0x20], xmm1
call fcn.00437980
pop ecx
pop ecx
test eax, eax
jne 0x49d97b
mov edx, esi
jmp 0x49d987
lea eax, [esi + 1]
push eax
call fcn.00443ab5
pop ecx
mov edx, eax
mov ecx, dword [ebp - 8]
call fcn.0049d6e6
push dword [ebp - 0x2c]
mov edi, eax
call fcn.00444494
pop ecx
mov eax, edi
jmp 0x49d922