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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [edx + 8], 0
push ebx
mov ebx, dword [edx + 0x3c]
push esi
push edi
mov dword [esp + 0x14], edx
mov edi, ecx
mov dword [esp + 0x24], ebx
jne 0x4e5f4d
test ebx, ebx
je 0x4e5f4d
mov eax, dword [edi + 0x2c]
inc eax
mov dword [edi + 0x2c], eax
mov dword [edx + 8], eax
mov esi, dword [edi + 8]
mov dword [esp + 0x10], eax
test esi, esi
jne 0x4e5c18
cmp dword [edi + 0x74], esi
jne 0x4e5c11
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x4e5c11
mov byte [edi + 0x17], 1
call fcn.00495c60
mov esi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
test eax, eax
jne 0x4e5c3e
lea ebx, [esi + 0x74]
lea edx, [esi + 0x78]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], edx
jmp 0x4e5da6
test dword [eax + 4], 0x400
je 0x4e5c5c
mov ebx, dword [eax + 8]
lea ecx, [esi + 0x78]
lea eax, [esi + 0x74]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
mov edx, eax
jmp 0x4e5c9b
movzx ecx, byte [eax]
sub ecx, 0xad
je 0x4e5cc4
sub ecx, 1
jne 0x4e5c7c
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x1c]
call fcn.004af9d0
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
lea eax, [esi + 0x74]
lea ecx, [esi + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
mov edx, eax
je 0x4e5d9e
mov eax, dword [eax]
mov dword [esp + 0x20], eax
cmp dword [ecx], eax
jg 0x4e5cec
push 0
push dword [esp + 0x14]
mov edx, 0x47
mov ecx, esi
push ebx
call fcn.00495eb0
lea eax, [esi + 0x70]
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4e5d22
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.004af9d0
test eax, eax
je 0x4e5c7c
mov ebx, dword [esp + 0x1c]
neg ebx
mov dword [esp + 0x18], 1
jmp 0x4e5c80
mov ecx, dword [esp + 0x20]
inc eax
mov dword [edx], eax
lea eax, [esi + 0x70]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0xc]
test ebx, ebx
jne 0x4e5d6d
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx]
cmp dword [eax], ecx
jg 0x4e5d4b
push ebx
push dword [ebp + 8]
lea edx, [ebx + 0xb]
mov ecx, esi
push ebx
call fcn.00495eb0
add esp, 0xc
jmp 0x4e5e6f
lea eax, [ecx + 1]
mov dword [edx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
lea ecx, [eax + ecx*4]
jmp 0x4e5e5b
js 0x4e5e6f
mov eax, ebx
cdq
push edx
push eax
call fcn.004760d0
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp word [ecx + 2], ax
jle 0x4e5e73
or dword [ecx + 4], 0x4000
mov word [ecx + 2], ax
jmp 0x4e5e73
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push dword [esp + 0x10]
mov edx, eax
mov ecx, edi
call fcn.004b5450
mov ecx, dword [esi + 0x74]
add esp, 4
cmp dword [esi + 0x78], ecx
jg 0x4e5de2
push 0
push 0
push dword [esp + 0x18]
mov edx, 0xf
mov ecx, esi
call fcn.00495eb0
mov edx, dword [esp + 0x1c]
lea eax, [esi + 0x70]
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4e5e1a
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
lea eax, [esi + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xf
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 + 0x1c]
mov ecx, dword [ebx]
cmp dword [eax], ecx
jg 0x4e5e3b
push 0
push dword [ebp + 8]
mov ecx, esi
push edx
mov edx, 0x14
call fcn.00495eb0
add esp, 0xc
jmp 0x4e5e6f
lea eax, [ecx + 1]
mov dword [ebx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
lea ebx, [esi + 0x70]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], edx
mov dword [esp + 0x18], ebx
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x10], 0
je 0x4e5f4d
inc dword [edi + 0x2c]
mov ebx, dword [edi + 0x2c]
mov dword [ecx + 0xc], ebx
mov ecx, edi
inc dword [edi + 0x2c]
mov edx, dword [edx + 0x10]
push ebx
call fcn.004b5450
mov edi, dword [esp + 0x10]
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi]
cmp dword [eax], ecx
jg 0x4e5ec3
push 0
push 0
push ebx
mov edx, 0xf
mov ecx, esi
call fcn.00495eb0
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x4e5ef8
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0xf
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 [esp + 0x1c]
mov ecx, dword [edi]
cmp dword [eax], ecx
lea eax, [ebx + 1]
jg 0x4e5f21
push ebx
push eax
push dword [esp + 0x18]
mov edx, 0x9f
mov ecx, esi
call fcn.00495eb0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
lea edx, [ebx + 1]
mov dword [eax + ecx*4], 0x9f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret