Function at 0x49d530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x50]
push ebp
push esi
push edi
mov edi, dword [ebx + 0xc]
mov edx, dword [ebx]
mov esi, dword [ebx + 4]
mov dword [esp + 0x44], esi
movzx eax, byte [edi + 0x10]
mov ebp, dword [edx]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], edi
lea ecx, [eax + eax*8]
mov eax, dword [edx + 4]
lea eax, [eax + ecx*8]
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push dword [ebx + 8]
push eax
push dword [esp + 0x78]
push dword [esp + 0x78]
push esi
push ebp
call fcn.00421c30
mov ebx, eax
add esp, 0x1c
mov dword [esp + 0x48], ebx
test ebx, ebx
jne 0x49d591
pop edi
pop esi
pop ebp
lea eax, [ebx + 7]
pop ebx
add esp, 0x48
ret
xor eax, eax
mov dword [edi + 0x24], 0x400
mov word [edi + 0x12], ax
mov word [edi + 0x28], ax
mov byte [edi + 0x1c], al
mov eax, dword [ebx]
push eax
push edi
push dword [ebp]
mov dword [esp + 0x4c], eax
call fcn.0049e580
add esp, 0xc
test eax, eax
je 0x49d5d5
push ebx
push dword [ebp]
call fcn.00455ea0
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x14]
mov ebp, dword [esp + 0x60]
push eax
push dword [esp + 0x1c]
push ebx
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ebp
push dword [esp + 0x7c]
call fcn.0049d8a0
mov ecx, eax
add esp, 0x24
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x49d81c
mov ecx, ebp
mov eax, esi
not eax
not ecx
mov dword [esp + 0x24], eax
mov edx, ecx
and eax, dword [edi + 4]
and edx, dword [edi]
mov dword [esp + 0x30], eax
mov eax, edx
or eax, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], edx
jne 0x49d63c
test eax, eax
je 0x49d7ae
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
test eax, eax
je 0x49d6ac
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push ebx
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ebp
push dword [esp + 0x7c]
call fcn.0049d8a0
mov edx, dword [esp + 0x48]
mov ecx, eax
mov eax, dword [esp + 0x40]
add esp, 0x24
and eax, dword [edi]
and edx, dword [edi + 4]
mov dword [esp + 0x34], eax
or eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], edx
jne 0x49d69e
mov edx, 1
mov dword [esp + 0x20], edx
jmp 0x49d6a0
xor edx, edx
test ecx, ecx
jne 0x49d876
mov ecx, dword [esp + 0x1c]
mov ebp, edx
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x40]
or edx, 0xffffffff
or esi, 0xffffffff
test eax, eax
jle 0x49d717
mov ebp, dword [esp + 0x44]
mov edi, dword [ebx + 4]
mov ebx, eax
add edi, 8
mov ebp, dword [ebp + 0x14]
nop
mov eax, dword [edi]
lea eax, [eax + eax*2]
add eax, eax
and ecx, dword [ebp + eax*8 + 0x20]
mov eax, dword [ebp + eax*8 + 0x24]
and eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x2c]
jb 0x49d6ff
ja 0x49d6f1
cmp ecx, dword [esp + 0x28]
jbe 0x49d6ff
cmp eax, esi
ja 0x49d6ff
jb 0x49d6fb
cmp ecx, edx
jae 0x49d6ff
mov edx, ecx
mov esi, eax
mov ecx, dword [esp + 0x1c]
add edi, 0xc
sub ebx, 1
jne 0x49d6d0
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
mov eax, edx
mov dword [esp + 0x28], edx
and eax, esi
mov dword [esp + 0x2c], esi
cmp eax, 0xffffffff
je 0x49d7b4
cmp edx, dword [esp + 0x50]
jne 0x49d738
cmp esi, dword [esp + 0x30]
je 0x49d79e
cmp edx, dword [esp + 0x34]
jne 0x49d744
cmp esi, dword [esp + 0x38]
je 0x49d79e
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
or edx, ecx
push ebx
push 0
or esi, eax
push esi
push edx
push eax
push ecx
push dword [esp + 0x7c]
call fcn.0049d8a0
mov ecx, eax
add esp, 0x24
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
cmp dword [edi], eax
jne 0x49d7a2
mov esi, dword [esp + 0x64]
cmp dword [edi + 4], esi
jne 0x49d7a2
cmp dword [esp + 0x14], 0
mov eax, 1
mov dword [esp + 0x20], 1
cmove ebp, eax
mov dword [esp + 0x3c], ebp
jmp 0x49d7a2
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov ecx, dword [esp + 0x1c]
je 0x49d6b2
mov edi, dword [esp + 0x10]
jmp 0x49d81e
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x49d81e
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x20], edi
jne 0x49d7f8
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
push ebx
push edi
push esi
push eax
push esi
push eax
push dword [esp + 0x7c]
call fcn.0049d8a0
add esp, 0x24
mov edi, eax
cmp dword [esp + 0x14], 0
mov eax, 1
cmove ebp, eax
test edi, edi
jne 0x49d81e
test ebp, ebp
jne 0x49d81e
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
push ebx
push 1
push esi
push eax
push esi
push eax
push dword [esp + 0x7c]
call fcn.0049d8a0
add esp, 0x24
mov edi, eax
cmp dword [ebx + 0x1c], 0
je 0x49d884
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x49d884
cmp dword [0x4e6008], 0
je 0x49d87a
mov eax, dword [0x4e86d8]
test eax, eax
je 0x49d847
push eax
call dword [0x4e6058]
add esp, 4
push esi
call dword [0x4e6034]
sub dword [0x4e8678], eax
dec dword [0x4e869c]
push esi
call dword [0x4e602c]
mov eax, dword [0x4e86d8]
add esp, 8
test eax, eax
je 0x49d884
push eax
call dword [0x4e6060]
jmp 0x49d881
mov edi, ecx
jmp 0x49d81e
push esi
call dword [0x4e602c]
add esp, 4
mov eax, dword [esp + 0x54]
push ebx
push dword [eax]
call fcn.00455ea0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret