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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov eax, dword [esi]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
push edi
mov edi, dword [esi + 0xc]
movzx ecx, byte [edi + 0x10]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*8 + 8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x7c]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edi
call fcn.004dffb0
mov ebx, eax
add esp, 0x1c
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4e08bd
xor eax, eax
xor edx, edx
mov word [edi + 0x12], dx
mov dword [edi + 0x24], 0x400
mov word [edi + 0x28], ax
mov byte [edi + 0x1c], al
mov ecx, dword [ebp]
mov eax, dword [ebx]
push ecx
mov dword [esp + 0x30], eax
call fcn.004c2f30
add esp, 4
test eax, eax
je 0x4e08ca
mov ecx, dword [ebp]
mov eax, ebx
call fcn.004acc50
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x68]
lea edx, [esp + 0x10]
push edx
push eax
push ebx
mov ebx, dword [esp + 0x70]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
push ebx
push esi
call fcn.004e0480
xor edx, edx
add esp, 0x24
mov dword [esp + 0x14], eax
cmp eax, edx
jne 0x4e0af6
mov eax, ebx
not eax
mov ecx, ebp
not ecx
mov dword [esp + 0x3c], eax
and eax, dword [edi]
mov dword [esp + 0x40], ecx
and ecx, dword [edi + 4]
mov dword [esp + 0x54], eax
or eax, ecx
mov dword [esp + 0x58], ecx
je 0x4e0af6
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
cmp dword [esp + 0x10], edx
je 0x4e0991
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
push ebx
push esi
call fcn.004e0480
mov ecx, dword [esp + 0x60]
and ecx, dword [edi]
mov edx, dword [esp + 0x64]
and edx, dword [edi + 4]
add esp, 0x24
mov dword [esp + 0x4c], ecx
or ecx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], edx
jne 0x4e0989
mov ecx, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x4e0af6
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
or esi, 0xffffffff
test eax, eax
jle 0x4e09fe
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx + 4]
add ebx, 8
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
lea eax, [eax + eax*2]
shl eax, 4
mov ecx, dword [eax + edi + 0x20]
mov eax, dword [eax + edi + 0x24]
and eax, dword [esp + 0x40]
and ecx, dword [esp + 0x3c]
cmp eax, dword [esp + 0x48]
jb 0x4e09e8
ja 0x4e09da
cmp ecx, dword [esp + 0x44]
jbe 0x4e09e8
cmp eax, esi
ja 0x4e09e8
jb 0x4e09e4
cmp ecx, edx
jae 0x4e09e8
mov edx, ecx
mov esi, eax
add ebx, 0xc
sub dword [esp + 0x28], 1
jne 0x4e09b4
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
mov eax, edx
and eax, esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], esi
cmp eax, 0xffffffff
je 0x4e0a82
cmp edx, dword [esp + 0x54]
jne 0x4e0a1b
cmp esi, dword [esp + 0x58]
je 0x4e0a75
cmp edx, dword [esp + 0x4c]
jne 0x4e0a27
cmp esi, dword [esp + 0x50]
je 0x4e0a75
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 0
or edx, ebx
or esi, ebp
push esi
push edx
mov edx, dword [esp + 0x78]
push ebp
push ebx
push edx
call fcn.004e0480
mov dword [esp + 0x38], eax
mov eax, dword [edi]
add esp, 0x24
cmp eax, ebx
jne 0x4e0a75
mov ecx, dword [edi + 4]
cmp ecx, ebp
jne 0x4e0a75
cmp dword [esp + 0x10], 0
mov dword [esp + 0x24], 1
jne 0x4e0a75
mov dword [esp + 0x20], 1
cmp dword [esp + 0x14], 0
je 0x4e0991
jmp 0x4e0af6
cmp dword [esp + 0x14], 0
jne 0x4e0af6
cmp dword [esp + 0x24], 0
jne 0x4e0ac9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push 0
push ebp
push ebx
push ebp
push ebx
push edx
call fcn.004e0480
add esp, 0x24
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
jne 0x4e0ac5
mov dword [esp + 0x20], 1
test eax, eax
jne 0x4e0af6
cmp dword [esp + 0x20], 0
jne 0x4e0af6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push 1
push ebp
push ebx
push ebp
push ebx
push eax
call fcn.004e0480
add esp, 0x24
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x1c], 0
je 0x4e0b0c
mov ecx, dword [esi + 0x18]
push ecx
call fcn.004acb60
add esp, 4
mov edx, dword [esp + 0x38]
mov ecx, dword [edx]
test ecx, ecx
je 0x4e0b5c
cmp dword [ecx + 0x1d8], 0
je 0x4e0b32
mov eax, esi
call fcn.004acbd0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp esi, dword [ecx + 0x128]
jb 0x4e0b5c
cmp esi, dword [ecx + 0x12c]
jae 0x4e0b5c
mov eax, dword [ecx + 0x124]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
pop edi
mov dword [ecx + 0x124], esi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push esi
call fcn.004acb60
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret