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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5fa040]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, ecx
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
test edi, edi
je 0x4ebad1
mov ebx, edi
add ecx, dword [eax + 0x34]
lea edx, [esp + 0x30]
push edx
mov edx, edi
call fcn.004eb3b0
add esp, 4
test eax, eax
je 0x4ebad1
mov ecx, dword [esp + 0xc]
sub edi, eax
add ecx, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0xc], ecx
ja 0x4eba7b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jb 0x4eb6f6
cmp eax, edi
ja 0x4eba7b
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x10]
push eax
add ecx, dword [edx + 0x34]
mov edx, edi
call fcn.004eb3b0
add esp, 4
test eax, eax
je 0x4eba7b
add dword [esp + 0xc], eax
sub edi, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
cmp ecx, 7
jne 0x4eb74d
test edx, edx
jne 0x4eb74d
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 3
jne 0x4eb74d
sub ebx, dword [esp + 0xc]
lea eax, [edi + 1]
cmp eax, ebx
cmove edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4eb779
cmp dword [esi + 8], eax
jne 0x4eb764
mov ecx, esi
call fcn.0046c920
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [eax + ecx], 0x20
inc ecx
mov byte [eax + ecx], 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
test edx, edx
ja 0x4eb78f
jb 0x4eb784
cmp ecx, 8
jae 0x4eb78f
mov edi, dword [ecx*4 + 0x5c3dac]
test edi, edi
jne 0x4eb7a1
push edx
push ecx
lea ecx, [esp + 0x48]
call fcn.0046bfc0
add esp, 8
lea edi, [esp + 0x40]
xor ebx, ebx
cmp byte [edi], bl
je 0x4eb7ae
inc ebx
cmp byte [edi + ebx], 0
jne 0x4eb7a7
push ebx
mov ecx, esi
call fcn.0046c9a0
mov ecx, dword [esi + 4]
add ecx, dword [esi]
nop dword [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4eb7c0
add ebx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esi + 4], ebx
cmp eax, 3
jne 0x4eb8b7
test ecx, ecx
jne 0x4eb8b7
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x34]
add ecx, dword [esp + 0x10]
call fcn.004eb3b0
add esp, 4
test eax, eax
je 0x4eba4a
cmp dword [esi + 8], ebx
jne 0x4eb821
mov ecx, esi
call fcn.0046c920
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov ebx, dword [esp + 0x20]
mov byte [eax + ecx], 0x3a
inc ecx
xor edi, edi
mov byte [eax + ecx], 0
mov dword [esi + 4], ecx
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, ebx
and ecx, dword [esp + 0x24]
or edx, ecx
je 0x4eb882
mov eax, dword [esi + 8]
mov bl, byte [edi + str.uMCAn]
cmp eax, dword [esi + 4]
jne 0x4eb86e
mov ecx, esi
call fcn.0046c920
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [eax + ecx], bl
inc ecx
mov ebx, dword [esp + 0x20]
mov byte [eax + ecx], 0
mov dword [esi + 4], ecx
inc edi
cmp edi, 5
jb 0x4eb838
mov edi, dword [esp + 0x24]
and ebx, 0xffffffe0
mov eax, ebx
mov dword [esp + 0x20], ebx
or eax, edi
mov dword [esp + 0x24], edi
je 0x4eba4a
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jne 0x4eb8b0
mov ecx, esi
call fcn.0046c920
push edi
push ebx
jmp 0x4eba2f
cmp eax, 5
jne 0x4eba4a
test ecx, ecx
jne 0x4eba4a
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, edi
mov ebx, dword [eax + 0x34]
lea eax, [esp + 0x40]
add ebx, dword [esp + 0xc]
push eax
mov ecx, ebx
call fcn.004eb3b0
add esp, 4
test eax, eax
je 0x4eba4a
add ebx, eax
sub edi, eax
lea eax, [esp + 0x48]
mov edx, edi
push eax
mov ecx, ebx
call fcn.004eb3b0
add esp, 4
test eax, eax
je 0x4eba4a
lea ecx, [esp + 0x38]
sub edi, eax
push ecx
lea ecx, [eax + ebx]
mov edx, edi
call fcn.004eb3b0
add esp, 4
test eax, eax
je 0x4eba4a
sub edi, eax
xor eax, eax
cmp edi, dword [esp + 0x38]
jne 0x4eba4a
cmp eax, dword [esp + 0x3c]
jne 0x4eba4a
mov eax, dword [esp + 0x2c]
cmp dword [esi + 8], eax
jne 0x4eb951
mov ecx, esi
call fcn.0046c920
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [eax + ecx], 0x3a
inc ecx
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4eb980
jb 0x4eb975
cmp eax, 6
jae 0x4eb980
mov edi, dword [eax*4 + 0x5c3e28]
test edi, edi
jne 0x4eb992
push ecx
push eax
lea ecx, [esp + 0x6c]
call fcn.0046bfc0
add esp, 8
lea edi, [esp + 0x64]
xor ebx, ebx
cmp byte [edi], bl
je 0x4eb99f
inc ebx
cmp byte [ebx + edi], 0
jne 0x4eb998
push ebx
mov ecx, esi
call fcn.0046c9a0
mov ecx, dword [esi + 4]
add ecx, dword [esi]
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4eb9b0
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x48]
add ecx, ebx
mov ebx, dword [esp + 0x4c]
mov eax, edi
or eax, ebx
mov dword [esi + 4], ecx
je 0x4eba4a
cmp dword [esi + 8], ecx
jne 0x4eb9e0
mov ecx, esi
call fcn.0046c920
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0x3a
inc ecx
mov byte [ecx + eax], 0
mov eax, edi
and eax, 1
mov dword [esi + 4], ecx
or eax, 0
je 0x4eba21
cmp dword [esi + 8], ecx
jne 0x4eba07
mov ecx, esi
call fcn.0046c920
mov ecx, dword [esi + 4]
and edi, 0xfffffffe
mov eax, dword [esi]
mov byte [eax + ecx], 0x44
inc ecx
mov byte [eax + ecx], 0
mov eax, edi
or eax, ebx
mov dword [esi + 4], ecx
je 0x4eba4a
cmp dword [esi + 8], ecx
jne 0x4eba2d
mov ecx, esi
call fcn.0046c920
push ebx
push edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [eax + ecx], 0x5f
inc ecx
mov byte [eax + ecx], 0
mov dword [esi + 4], ecx
mov ecx, esi
call fcn.004eb4e0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov ebx, dword [eax + 0x38]
mov edi, ebx
sub edi, ecx
jne 0x4eb6b3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4eba9f
cmp dword [esi + 8], eax
jne 0x4eba8e
mov ecx, esi
call fcn.0046c920
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [eax + ecx], 0x20
inc ecx
mov byte [eax + ecx], 0
mov dword [esi + 4], ecx
xor edi, edi
inc edi
cmp byte [edi + str.ERROR], 0
jne 0x4ebaa1
push edi
mov ecx, esi
call fcn.0046c9a0
mov ecx, dword [esi + 4]
mov edx, str.ERROR
add ecx, dword [esi]
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4ebac0
add dword [esi + 4], edi
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 4