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

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x74]
dec dword [ebp + 0x38]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
test edx, edx
je 0x4e0a31
mov esi, dword [edi + 0x74]
cmp dword [edi + 0x78], esi
jg 0x4e08bf
push 0
push 0
push edx
push 0x14
push edi
call fcn.004e2e80
mov edx, dword [esp + 0x4c]
add esp, 0x14
mov esi, eax
jmp 0x4e08ee
lea eax, [esi + 1]
mov dword [edi + 0x74], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4e08f8
inc dword [eax]
push 0xfffffffffffffff7
push eax
push dword [ebx + 0x10]
lea ecx, [edx + 1]
push ecx
push dword [ebx + 0xc]
mov dword [esp + 0x2c], ecx
push 0x59
push edi
call fcn.0052e440
mov ecx, dword [edi + 0x74]
add eax, 2
add esp, 0x1c
mov dword [esp + 0x14], eax
cmp dword [edi + 0x78], ecx
jg 0x4e0937
mov edx, dword [esp + 0x10]
push eax
push edx
push eax
push 0x10
push edi
call fcn.004e2e80
add esp, 0x14
jmp 0x4e096a
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x74]
test esi, esi
jns 0x4e0974
lea esi, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4e0983
mov eax, 0x784c9c
jmp 0x4e098c
mov eax, dword [edi + 0x70]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x10]
mov ecx, dword [edi + 0x74]
dec edx
mov esi, dword [ebx + 0xc]
cmp dword [edi + 0x78], ecx
jg 0x4e09b1
push edx
push dword [esp + 0x1c]
push esi
push 0x4f
push edi
call fcn.004e2e80
add esp, 0x14
jmp 0x4e09e0
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
mov edx, dword [esp + 0x38]
cmp dword [edi + 0x78], ecx
jg 0x4e09fe
push 0
push edx
push 1
push 0x47
push edi
call fcn.004e2e80
add esp, 0x14
jmp 0x4e0a2d
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
cmp byte [eax + 0x57], 0
je 0x4e0a44
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
push ecx
push dword [eax + 0xc]
push edi
call fcn.004c4b20
mov esi, dword [esp + 0x3c]
add esp, 0xc
movzx eax, byte [esi]
add eax, 0xfffffff6
cmp eax, 3
ja case.default.0x4e0a68
jmp dword [eax*4 + 0x4e0c2c]
push ebp
call fcn.00516dc0
mov edx, eax
push ebp
mov dword [esp + 0x2c], edx
call fcn.00516dc0
push edx
push dword [ebx + 0x10]
mov dword [esp + 0x48], eax
push dword [ebx + 0xc]
push 0x60
push edi
call fcn.0052e3e0
mov ebx, dword [esp + 0x54]
push ebx
push dword [esi + 4]
push 0x7e
push edi
call fcn.0052e380
push ebx
mov ebx, dword [esp + 0x54]
push ebx
push dword [esi + 4]
push 0x7f
push edi
call fcn.0052e3e0
mov eax, dword [edi + 0x74]
add esp, 0x40
test eax, eax
jle 0x4e0acf
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
push dword [esp + 0x38]
push ebp
call fcn.00523a60
push ebx
push ebp
call fcn.00523a60
jmp 0x4e0b83
push ebp
call fcn.00516dc0
mov ecx, dword [ebx + 0x10]
mov esi, eax
mov eax, dword [esp + 0x34]
push ecx
push dword [eax + 0x14]
push esi
push ecx
push dword [ebx + 0xc]
push 0x60
push edi
call fcn.0052e440
push dword [ebx + 0x10]
mov eax, dword [esp + 0x54]
push dword [ebx + 0xc]
push esi
push dword [eax + 4]
push 0x89
push edi
call fcn.0052e510
push esi
push ebp
call fcn.00523a60
add esp, 0x40
jmp 0x4e0b86
push dword [ebx + 0x10]
push dword [esi + 4]
push dword [ebx + 0xc]
push ebp
call fcn.005093b0
jmp 0x4e0b83
cmp dword [esi + 0xc], 0
jne 0x4e0b56
push dword [ebx + 0x10]
push ebp
call fcn.00516d60
mov dword [esi + 0xc], eax
add esp, 8
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
push dword [ebx + 0x10]
push dword [esi + 0xc]
push dword [ebx + 0xc]
push ebp
call fcn.005093b0
push dword [esi + 4]
push 0xe
push edi
call fcn.0052e320
add esp, 0x1c
jmp 0x4e0b86
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push 0x53
push edi
call fcn.0052e380
add esp, 0x10
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
test eax, eax
je 0x4e0ba1
push dword [esp + 0x40]
push eax
push 0x3c
push edi
call fcn.0052e380
add esp, 0x10
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e0bbf
push edx
push edi
push ecx
call fcn.004f4f20
add esp, 0xc
jmp 0x4e0bc8
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4e0bef
push 0
push 0
push dword [esp + 0x3c]
push 0x43
push edi
call fcn.004e2e80
mov eax, dword [esp + 0x30]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
pop edi
pop esi
pop ebp
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov dword [edx], 0x43
mov eax, dword [esp + 0x10]
mov dword [edx + 4], ecx
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
pop ebx
add esp, 0x10
ret