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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov edx, dword [esi + 8]
mov dword [esp + 0x10], edx
cmp dword [edi + 0x2c], 0
mov eax, dword [edi + 0x28]
lea ecx, [edx + 0x74]
mov dword [esp + 0x20], 0
lea ebx, [edx + 0x78]
mov byte [edi], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
jle 0x4e7427
mov eax, dword [eax]
mov dword [esp + 0x34], 0
test dword [eax + 4], 0x1000000
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x3c], ebx
je 0x4e7124
mov eax, dword [eax + 0x2c]
mov edi, dword [eax + 0x28]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x4e710d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test byte [eax + 4], 0x20
je 0x4e710d
cmp dword [esp + 0x28], 0
je 0x4e710d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e70b9
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov ecx, dword [ecx]
cmp dword [edx + 0x78], ecx
jg 0x4e70da
mov ecx, dword [esp + 0x10]
mov edx, 0x4f
push 0
push eax
push dword [esp + 0x30]
call fcn.00490b70
add esp, 0xc
jmp 0x4e710d
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
push 0x10
push eax
push edi
push esi
mov dword [esp + 0x44], eax
call fcn.004b0a60
add esp, 0x10
test ebx, ebx
je 0x4e7196
mov ebx, dword [ebx]
mov dword [esp + 0x30], ebx
cmp ebx, 1
jne 0x4e7153
mov al, byte [esi + 0x13]
test al, al
jne 0x4e7142
inc dword [esi + 0x2c]
mov edi, dword [esi + 0x2c]
jmp 0x4e717b
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov edi, dword [esi + eax*4 + 0x98]
jmp 0x4e717b
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x18], edx
cmp ebx, ecx
jg 0x4e7170
lea eax, [edx + ebx]
sub ecx, ebx
mov dword [esi + 0x20], eax
mov edi, edx
mov dword [esi + 0x1c], ecx
jmp 0x4e717f
mov eax, dword [esi + 0x2c]
lea edi, [eax + 1]
add eax, ebx
mov dword [esi + 0x2c], eax
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x3c]
mov ecx, esi
push 1
push 0
push edi
mov edx, ebx
call fcn.004b01c0
add esp, 0xc
jmp 0x4e71a4
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xc], 0
jl 0x4e71de
test ebx, ebx
je 0x4e71de
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4e71c4
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0xc]
push edi
push ebx
push eax
push dword [ecx + 0xc]
mov ecx, esi
call fcn.004dd950
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 4]
test byte [eax + 4], 0x20
je 0x4e72dc
xor edi, edi
add ebx, 8
cmp edi, dword [esp + 0x30]
jge 0x4e720f
mov edx, dword [ebx]
mov ecx, esi
call fcn.004a77b0
inc edi
mov dword [esp + 0x3c], eax
add ebx, 0x14
test eax, eax
je 0x4e71f0
mov edi, eax
jmp 0x4e7214
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e722e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], eax
je 0x4e722e
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edx, dword [ecx]
cmp dword [ebx], edx
mov ebx, dword [esp + 0x10]
jg 0x4e7258
push 0
push 0
push eax
mov edx, 0x54
mov ecx, ebx
call fcn.00490b70
add esp, 0xc
mov edx, eax
jmp 0x4e728e
lea eax, [edx + 1]
mov dword [ecx], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x4e72a6
push edi
mov edx, 0xfffffffe
call fcn.00491680
add esp, 4
jmp 0x4e72e0
test edx, edx
jns 0x4e72ae
mov edx, dword [ebx + 0x74]
dec edx
mov eax, dword [ebx + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4e72cf
push 0xfffffffffffffffe
push edi
mov edx, eax
mov ecx, ebx
call fcn.004918d0
add esp, 8
jmp 0x4e72e0
test edi, edi
je 0x4e72e0
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
jmp 0x4e72e0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x74]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 8]
cmp dword [ebx + 0x78], ecx
jg 0x4e730b
push edx
push edi
push 0
mov edx, 0xa1
mov ecx, ebx
call fcn.00490b70
add esp, 0xc
add ebx, 0x70
jmp 0x4e7339
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
add ebx, 0x70
mov dword [eax + ecx*4], 0xa1
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov edx, dword [eax + 4]
cmp byte [ecx + 0x57], 0
je 0x4e735c
push edx
mov edx, 0xfffffff8
call fcn.00491680
add esp, 4
jmp 0x4e7370
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
test ecx, ecx
jle 0x4e738b
mov eax, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
movzx edx, al
mov eax, dword [ebx]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x30]
cmp eax, 1
jne 0x4e73ae
test edi, edi
je 0x4e73b9
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x4e73b9
movzx eax, al
mov dword [esi + eax*4 + 0x98], edi
inc byte [esi + 0x13]
jmp 0x4e73b9
cmp eax, dword [esi + 0x1c]
jle 0x4e73b9
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
test edi, edi
je 0x4e73ea
mov ecx, dword [edx + 0xc]
not edi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e73e1
push edi
call fcn.00491390
mov edx, dword [esp + 0x14]
add esp, 4
jmp 0x4e73ea
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x74]
mov dword [ecx + edi*4], eax
mov ecx, dword [esp + 0x38]
mov edi, dword [ebp + 8]
inc ecx
mov eax, dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
cmp ecx, dword [edi + 0x2c]
lea ecx, [edx + 0x74]
jl 0x4e7066
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
jne 0x4e7422
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
jmp 0x4e742e
lea eax, [edi + 0x24]
jmp 0x4e7462
mov dword [esp + 0x2c], ebx
lea ebx, [edx + 0x70]
mov eax, dword [ebp + 8]
mov edi, ecx
add eax, 0x24
mov dword [esp + 0x34], ebx
mov edx, eax
mov dword [esp + 0x24], edx
cmp dword [eax], 0
je 0x4e74dc
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ebx
je 0x4e74dc
mov dword [esp + 0x24], eax
mov edi, ecx
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
cmp dword [eax], edx
mov edx, dword [esp + 0x24]
jg 0x4e74a5
mov ecx, dword [esp + 0x10]
mov edx, 0x12
push 0
push 0
push dword [esp + 0x1c]
call fcn.00490b70
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x4e74dc
mov eax, dword [esp + 0x20]
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x12
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [eax + 0x1c]
cmp dword [edx], ebx
jle 0x4e7517
lea edi, [eax + 4]
nop dword [eax + eax]
push dword [edi + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.004b0110
mov eax, dword [esp + 0x28]
lea edi, [edi + 0x14]
inc ebx
add esp, 4
cmp ebx, dword [eax]
jl 0x4e74f0
mov eax, dword [esp + 0x10]
lea edi, [eax + 0x74]
lea edx, [eax + 0x70]
jmp 0x4e751f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x20]
mov byte [ecx], 0
test ebx, ebx
je 0x4e7566
mov esi, dword [edi]
lea ecx, [esi - 1]
cmp ebx, ecx
jne 0x4e753f
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x4e7556
mov eax, 0x5ca868
mov dword [eax + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
test ebx, ebx
cmovns ecx, ebx
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret