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

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebp, eax
mov dword [esp + 0x14], eax
mov ecx, esi
lea eax, [ebx*4]
push edi
mov edx, dword [esi + 0x64]
mov dword [esp + 0x14], eax
mov edx, dword [eax + edx]
call fcn.004e0280
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
lea eax, [ebx*8]
mov dword [esp + 0x38], eax
mov edi, dword [ecx]
add edi, eax
mov eax, dword [edi + 4]
cmp eax, 0xfffffffb
jne 0x4e9bd4
mov ebx, dword [edi]
jmp 0x4e9bf2
cmp eax, 0xfffffff2
ja 0x4e9e9c
mov ecx, dword [esi + 0x54]
mov edx, edi
call fcn.004ac760
mov ebx, eax
mov dword [edi + 4], 0xfffffffb
mov dword [edi], ebx
push 4
push ebx
push esi
call fcn.004e0580
mov ecx, 0x884
movzx eax, ax
mov word [esi + 0x7c], cx
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov word [esi + 0x78], cx
mov ecx, esi
mov word [esi + 0x7a], ax
call fcn.004e3930
mov ecx, dword [ebx + 0x10]
lea eax, [ebx + 0x14]
mov dword [esp + 0x1c], eax
add eax, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.004ac8d0
mov ebx, eax
test ebx, ebx
je 0x4e9e45
mov edx, ebx
cmp ebx, 2
jne 0x4e9c62
mov ecx, esi
xor edi, edi
call fcn.004e0160
mov edx, dword [esp + 0x38]
mov ecx, eax
mov eax, ebx
mov dword [esp + 0x30], ecx
and eax, 0xf
dec eax
jmp switch.0x004e9c9a
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x64]
add ecx, 4
mov dword [esp + 0x14], ecx
mov edi, dword [ecx + eax]
mov ecx, esi
call fcn.004e0160
mov edx, dword [esp + 0x38]
mov ecx, eax
mov dword [esp + 0x30], eax
add edx, 8
mov eax, ebx
mov dword [esp + 0x38], edx
and eax, 0xf
dec eax
cmp eax, 7
ja case.0x4e9c9a.1
jmp dword [eax*4 + 0x4e9ea4]
push 4
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esi + 0x54]
call fcn.0049fef0
add esp, 0xc
push eax
push esi
call fcn.004e0580
mov ecx, 0x5685
movzx eax, ax
add esp, 0xc
mov word [esi + 0x7c], cx
mov ecx, esi
mov word [esi + 0x78], bp
mov word [esi + 0x7a], ax
call fcn.004e3930
jmp 0x4e9e30
mov dword [esp + 0x10], 0xb
jmp 0x4e9cf2
mov dword [esp + 0x10], 0xc
mov eax, edi
shr eax, 0x18
and eax, 0x1f
sub eax, 0xf
cmp eax, 4
jbe 0x4e9d3a
mov eax, edi
and eax, 0x1f000000
cmp eax, 0xa000000
jne 0x4e9d9f
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
add eax, edx
push eax
push edi
push esi
call fcn.004eff00
push eax
push dword [esp + 0x40]
push ebp
push 0xa
push esi
call fcn.004e02e0
add esp, 0x20
jmp 0x4e9e30
mov word [esi + 0x78], di
mov ecx, esi
cmp ebx, 3
jne 0x4e9d71
mov dword [esi + 0x7a], 0x5d040000
call fcn.004e3930
mov ecx, 0x5685
movzx eax, ax
mov word [esi + 0x7c], cx
mov ecx, esi
mov word [esi + 0x78], bp
mov word [esi + 0x7a], ax
call fcn.004e3930
jmp 0x4e9e30
mov dword [esi + 0x7a], 0x5b160ad3
call fcn.004e3930
push eax
push dword [esp + 0x34]
push ebp
push 0xa
push esi
call fcn.004e02e0
mov byte [esi + 0x134], 1
jmp 0x4e9e2d
mov dword [esp + 0x10], 0xd
mov edx, edi
mov ecx, esi
call fcn.004e01e0
push eax
push dword [esp + 0x34]
push ebp
push dword [esp + 0x1c]
jmp 0x4e9e27
mov eax, edi
and eax, 0x1f000000
cmp eax, 0x4000000
jne case.0x4e9c9a.1
cmp ebx, 6
jne 0x4e9de5
mov eax, 0x5685
mov word [esi + 0x78], bp
mov ecx, esi
mov word [esi + 0x7c], ax
mov word [esi + 0x7a], di
call fcn.004e3930
jmp 0x4e9e30
push edi
test bl, 0x10
je 0x4e9df9
push ebp
push 9
push esi
call fcn.004e02e0
add esp, 0x10
jmp 0x4e9e30
push ecx
push ebp
push 0xe
jmp 0x4e9e27
mov edx, edi
mov ecx, esi
call fcn.004e5ad0
cmp ebx, 7
jne 0x4e9e1f
mov dword [esi + 0x7a], 0x5d040002
mov ecx, esi
mov word [esi + 0x78], ax
jmp 0x4e9d4c
push eax
push dword [esp + 0x34]
push ebp
push 0xf
push esi
call fcn.004e02e0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.004ac8d0
mov ebx, eax
test ebx, ebx
jne 0x4e9c40
cmp dword [esp + 0x3c], 0
mov ecx, esi
mov word [esi + 0x78], bp
je 0x4e9e79
mov dword [esi + 0x7a], 0x12000000
call fcn.004e3930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x34]
mov ecx, esi
call fcn.004e66a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, 0x5784
mov word [esi + 0x7c], ax
mov eax, dword [esp + 0x18]
mov word [esi + 0x7a], ax
call fcn.004e3930
mov ecx, dword [esi + 0x64]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
add esp, 0x1c
ret
push 0xb
push esi
call fcn.004a52b0
sahf
dec esi
add byte [ecx - 0x1fffb164], ah
pushfd
dec esi
add dl, ch
pushfd
dec esi
add byte [edi - 0x4bffb163], dl
popfd
dec esi
add bh, bh
popfd
dec esi
add byte [esi - 0x62], ah
dec esi
add ah, cl
int3