Function at 0x4e0670
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.004dfdf0
mov ebx, eax
add esp, 0x1c
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4e06fd
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.004c2d80
add esp, 4
test eax, eax
je 0x4e070a
mov ecx, dword [ebp]
mov eax, ebx
call fcn.004aca90
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.004e02c0
xor edx, edx
add esp, 0x24
mov dword [esp + 0x14], eax
cmp eax, edx
jne 0x4e0936
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 0x4e0936
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 0x4e07d1
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.004e02c0
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 0x4e07c9
mov ecx, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x4e0936
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
or esi, 0xffffffff
test eax, eax
jle 0x4e083e
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 0x4e0828
ja 0x4e081a
cmp ecx, dword [esp + 0x44]
jbe 0x4e0828
cmp eax, esi
ja 0x4e0828
jb 0x4e0824
cmp ecx, edx
jae 0x4e0828
mov edx, ecx
mov esi, eax
add ebx, 0xc
sub dword [esp + 0x28], 1
jne 0x4e07f4
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 0x4e08c2
cmp edx, dword [esp + 0x54]
jne 0x4e085b
cmp esi, dword [esp + 0x58]
je 0x4e08b5
cmp edx, dword [esp + 0x4c]
jne 0x4e0867
cmp esi, dword [esp + 0x50]
je 0x4e08b5
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.004e02c0
mov dword [esp + 0x38], eax
mov eax, dword [edi]
add esp, 0x24
cmp eax, ebx
jne 0x4e08b5
mov ecx, dword [edi + 4]
cmp ecx, ebp
jne 0x4e08b5
cmp dword [esp + 0x10], 0
mov dword [esp + 0x24], 1
jne 0x4e08b5
mov dword [esp + 0x20], 1
cmp dword [esp + 0x14], 0
je 0x4e07d1
jmp 0x4e0936
cmp dword [esp + 0x14], 0
jne 0x4e0936
cmp dword [esp + 0x24], 0
jne 0x4e0909
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.004e02c0
add esp, 0x24
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
jne 0x4e0905
mov dword [esp + 0x20], 1
test eax, eax
jne 0x4e0936
cmp dword [esp + 0x20], 0
jne 0x4e0936
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.004e02c0
add esp, 0x24
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x1c], 0
je 0x4e094c
mov ecx, dword [esi + 0x18]
push ecx
call fcn.004ac9a0
add esp, 4
mov edx, dword [esp + 0x38]
mov ecx, dword [edx]
test ecx, ecx
je 0x4e099c
cmp dword [ecx + 0x1d8], 0
je 0x4e0972
mov eax, esi
call fcn.004aca10
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp esi, dword [ecx + 0x128]
jb 0x4e099c
cmp esi, dword [ecx + 0x12c]
jae 0x4e099c
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.004ac9a0
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret