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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x44]
push esi
mov esi, dword [edi + 8]
mov dword [esp + 0x34], ebx
test esi, esi
jne 0x4e65ba
cmp dword [edi + 0x74], esi
jne 0x4e65ad
mov ecx, dword [edi]
test byte [ecx + 0x44], 8
jne 0x4e65ad
mov byte [edi + 0x17], 1
mov ebx, edi
call fcn.00493d60
mov ebx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
xor ecx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x4e65d6
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x4e65da
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x4e65f2
cmp byte [ebx + 0xd], 0x52
jne 0x4e65f2
cmp byte [ebx + 0xe], 0x57
mov dword [esp + 0x20], 1
je 0x4e65f6
mov dword [esp + 0x20], ecx
mov eax, esi
call fcn.004944a0
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x2c]
lea ecx, [eax + 1]
lea eax, [eax + edx + 1]
mov dword [esp + 0x38], eax
mov dword [edi + 0x2c], eax
mov eax, esi
mov dword [esp + 0x1c], ecx
call fcn.004944a0
mov ecx, dword [edi + 0x28]
inc dword [edi + 0x2c]
mov dword [esp + 0xc], ecx
inc ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
push eax
mov dword [edi + 0x28], ecx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
push edi
call fcn.004e55f0
push 0
push 0
push 0
push 0xb
push esi
call fcn.00493fe0
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x40]
add esp, 0x2c
test eax, eax
je 0x4e6687
mov ecx, dword [esp + 0x30]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [esi + 0x88]
push 0
add edx, 2
push edx
push 0
push 0x11
push esi
call fcn.00493fe0
mov eax, dword [ebx + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0x14
push 0
push eax
push ecx
push 0x6f
push esi
call fcn.00493fe0
add esp, 0x14
push edi
mov eax, ebx
call fcn.004e5da0
mov edx, dword [esp + 0x18]
add esp, 4
push 0
push edx
push 0
push 0x46
push esi
mov dword [esp + 0x3c], eax
call fcn.00493fe0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 0x14
push 0
push eax
push ecx
push 0x24
push esi
call fcn.00493fe0
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x24]
add esp, 0x14
push 0
push edx
push eax
push 0x24
push esi
call fcn.00493fe0
add esp, 0x14
cmp dword [esp + 0x20], 0
je 0x4e6761
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x88]
mov eax, dword [esp + 0x28]
push edx
push eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edi
mov eax, ebx
call fcn.004e4f30
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
add esp, 0x14
push 0
push edx
push eax
push 5
push esi
call fcn.00493fe0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
add esp, 0x14
push 0
push ecx
push edx
push 0x24
push esi
call fcn.00493fe0
add esp, 0x14
mov eax, dword [esi + 0x88]
xor edx, edx
mov dword [esp + 0x48], eax
cmp dword [esp + 0x2c], edx
je 0x4e6904
cmp byte [ebx + 0xe], 0x52
je 0x4e6787
cmp byte [ebx + 0xd], 0x52
jne 0x4e6904
xor eax, eax
cmp byte [ebx + 0xd], 0x52
mov dword [esp + 0x30], edx
sete al
cmp byte [ebx + 0xc], 0x56
mov dword [esp + 0x44], eax
jne 0x4e68aa
mov ecx, dword [esp + 0x3c]
cmp ecx, edx
je 0x4e67ac
mov edx, dword [ecx]
mov eax, dword [ebx + 0x40]
add eax, edx
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x4e67bd
mov eax, dword [ecx]
jmp 0x4e67bf
xor eax, eax
mov ebx, dword [ebx + 0x38]
mov ecx, dword [esp + 0x2c]
add ebx, eax
push ecx
mov dword [esp + 0x44], ebx
push edi
xor edx, edx
xor ebx, ebx
call fcn.004ca1d0
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x4e6824
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
jmp 0x4e6804
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
add eax, ebx
push eax
push ebx
push edx
push 0x5a
push esi
call fcn.00493fe0
add esp, 0x14
inc ebx
sub dword [esp + 0x2c], 1
jne 0x4e6800
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
push ecx
push ebx
push eax
push 0x57
push esi
call fcn.00493fe0
mov ecx, dword [esi]
add esp, 0x14
cmp byte [ecx + 0x49], 0
mov dword [esp + 0x40], eax
je 0x4e6856
mov eax, dword [esp + 0x30]
mov edx, 0xfffffff7
call fcn.004949a0
jmp 0x4e6871
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0x58]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4 - 0x14]
mov ecx, dword [esp + 0x30]
mov byte [eax + 1], 0xf7
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x40]
add eax, 2
push eax
push 0
push eax
push 0x10
push esi
call fcn.00493fe0
mov edx, dword [esp + 0x24]
add esp, 0x14
dec edx
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push ebx
push eax
push 0x4e
push esi
call fcn.00493fe0
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
add esp, 0x14
mov edx, dword [ebp + 0x14]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x24]
neg eax
push ecx
mov ecx, dword [esp + 0x18]
sbb eax, eax
and eax, dword [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push ebx
mov eax, edi
call fcn.004e5cb0
mov eax, dword [esp + 0x48]
add esp, 0x18
test eax, eax
je 0x4e6904
mov ecx, dword [esi + 0x88]
jge 0x4e68e9
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x49], 0
je 0x4e68f8
mov eax, 0x539e70
jmp 0x4e6901
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
cmp dword [esp + 0x20], 0
jne 0x4e6927
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
push eax
push ecx
push 0
push edx
push edi
mov eax, ebx
call fcn.004e4f30
add esp, 0x14
mov eax, dword [esp + 0x14]
push 0
push 1
push eax
push 0x53
push esi
call fcn.00493fe0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
add esp, 0x14
push 0
push ecx
push edx
push 5
push esi
call fcn.00493fe0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
add esp, 0x14
push 0
push 0
push eax
push ecx
push edx
push ebx
mov eax, edi
call fcn.004e5cb0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x40]
add esp, 0x18
test eax, eax
je 0x4e698d
mov ecx, dword [esp + 0x18]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [ebx + 0x24]
push 0
push 0
push edx
push 0x8b
push esi
call fcn.00493fe0
mov eax, dword [esp + 0x4c]
add esp, 0x14
push 0
push 0
push eax
push 0x42
push esi
call fcn.00493fe0
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jge 0x4e69c8
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x49], 0
je 0x4e69de
mov eax, 0x539e70
mov dword [eax + 8], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
pop esi
mov dword [eax + 8], ecx
pop ebx
mov esp, ebp
pop ebp
ret