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

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x24], 0
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x440]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
je 0x4e5ea2
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
cmp byte [eax], 1
jne 0x4e5eeb
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
cmp byte [eax], 2
jne 0x4e5f05
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
cmp byte [eax], 0
je 0x4e5ef6
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004e5280
add esp, 8
test eax, eax
js 0x4e5eeb
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
jne 0x4e5ec5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
cmp byte [eax], 4
jne 0x4e5f27
push edi
push ebx
call fcn.004e66c0
add esp, 8
test eax, eax
js 0x4e5eeb
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
mov al, byte [eax]
test al, al
je 0x4e6519
cmp al, 5
jne 0x4e5eeb
lea ebp, [edi + 0x78]
push ebp
push ebx
call fcn.004e5280
add esp, 8
test eax, eax
js 0x4e5eeb
cmp dword [ebp + 4], 0
mov eax, dword [ebp]
ja 0x4e5eeb
jb 0x4e5f58
cmp eax, 0x5f5e100
ja 0x4e5eeb
push 0x48
push eax
call fcn.00562749
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
mov dword [edi + 0x80], esi
test esi, esi
je 0x4e5eeb
push 1
push ebx
mov dword [esp + 0x1c], 0
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
movzx edi, byte [eax]
test edi, edi
je 0x4e6328
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004e5280
add esp, 8
test eax, eax
js 0x4e5eeb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x54]
cmp eax, dword [esp + 0x24]
jb 0x4e5eeb
mov esi, dword [esp + 0x20]
ja 0x4e5fd3
cmp dword [ecx + 0x50], esi
jb 0x4e5eeb
lea eax, [edi - 0xe]
cmp eax, 0xb
ja case.0x4e5fdf.22
jmp dword [eax*4 + 0x4e6524]
mov esi, dword [esp + 0x30]
cmp dword [esi + 8], 0
jne 0x4e5eeb
push 1
push dword [ebp]
call fcn.00562749
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x4e5eeb
push dword [ebp]
push eax
push ebx
call fcn.004e5520
add esp, 0xc
test eax, eax
js 0x4e5eeb
mov esi, dword [ebp + 4]
xor edi, edi
mov edx, dword [ebp]
xor ecx, ecx
mov dword [esp + 0x14], edi
test esi, esi
jb 0x4e6063
ja 0x4e6039
test edx, edx
je 0x4e6063
mov edi, dword [esp + 0x30]
mov ebx, ecx
mov edi, dword [edi + 8]
cmp byte [edi + ecx], 0
lea eax, [ebx + 1]
cmove eax, ebx
inc ecx
mov ebx, eax
xor eax, eax
cmp eax, esi
jb 0x4e6042
ja 0x4e605b
cmp ecx, edx
jb 0x4e6042
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x2c]
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
jne 0x4e5f92
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x14]
test edi, edi
jg 0x4e609d
push esi
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
jmp 0x4e6063
mov esi, dword [esp + 0x30]
cmp dword [esi + 0xc], 0
jne 0x4e5eeb
push 1
push edi
call fcn.00562749
mov dword [esi + 0xc], eax
add esp, 8
test eax, eax
je 0x4e5eeb
push edi
push eax
push ebx
call fcn.004e5520
add esp, 0xc
test eax, eax
js 0x4e5eeb
jmp 0x4e6063
mov edi, dword [esp + 0x14]
test edi, edi
jle case.0x4e5fdf.22
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x10], 0
jne 0x4e5eeb
push 1
push edi
call fcn.00562749
mov dword [esi + 0x10], eax
jmp 0x4e60b6
push edi
push dword [esp + 0x34]
push ebx
call fcn.004e6cb0
jmp 0x4e60c9
push 1
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
lea ebx, [esi - 1]
test bl, 1
jne 0x4e5eeb
mov ecx, dword [ebp]
xor edx, edx
mov eax, dword [ebp + 4]
shld eax, ecx, 2
shl ecx, 2
cmp edx, eax
jb 0x4e5eeb
ja 0x4e6146
cmp ebx, ecx
jb 0x4e5eeb
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x88], edx
jne 0x4e5eeb
push ebx
call fcn.00562723
mov ecx, dword [esp + 0x14]
mov ebp, eax
add esp, 4
mov dword [ecx + 0x88], ebp
test ebp, ebp
je 0x4e5eeb
mov edi, ebx
test ebx, ebx
je 0x4e61ba
nop dword [eax]
cmp edi, 0x10000
mov eax, 0x10000
mov esi, edi
cmova esi, eax
push esi
push dword [esp + 0x30]
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
push esi
push eax
push ebp
call fcn.004702b0
add esp, 0xc
add ebp, esi
sub edi, esi
jne 0x4e6180
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x88]
lea ebp, [ecx + 0x78]
xor esi, esi
cmp dword [ebp + 4], esi
jb 0x4e605f
ja 0x4e61d9
cmp dword [ebp], esi
jbe 0x4e605f
mov edx, dword [esp + 0x18]
add edx, 4
mov dword [edx], eax
cmp ebx, 2
jb 0x4e5eeb
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x4e61fb
cmp byte [eax + 1], 0
je 0x4e6211
sub ebx, 2
add eax, 2
cmp ebx, 2
jae 0x4e61f0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov ecx, eax
sub ebx, 2
sub ecx, dword [edx]
add eax, 2
mov dword [edx - 4], ecx
inc esi
xor ecx, ecx
add edx, 0x48
cmp ecx, dword [ebp + 4]
jb 0x4e61e0
ja 0x4e605f
cmp esi, dword [ebp]
jb 0x4e61e0
jmp 0x4e605f
push 2
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
mov esi, dword [esp + 0x30]
mov al, byte [eax]
mov byte [esp + 0x34], al
cmp dword [esi + 0x14], 0
jne 0x4e5eeb
push 1
push dword [ebp]
call fcn.00562749
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
je 0x4e5eeb
cmp byte [esp + 0x34], 0
push dword [ebp]
je 0x4e628f
push 1
push eax
call fcn.0046cb30
add esp, 0xc
jmp 0x4e62a1
push eax
push ebx
call fcn.004e5520
add esp, 0xc
test eax, eax
js 0x4e5eeb
xor esi, esi
cmp dword [ebp + 4], esi
jb 0x4e6063
ja 0x4e62b7
cmp dword [ebp], esi
jbe 0x4e6063
mov edi, dword [esp + 0x18]
add edi, 0x40
nop
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x14]
cmp byte [esi + eax], 0
je 0x4e6300
push 4
push ebx
call fcn.004e4af0
add esp, 8
test eax, eax
je 0x4e5eeb
movzx edx, byte [eax + 3]
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [edi], edx
xor eax, eax
inc esi
add edi, 0x48
cmp eax, dword [ebp + 4]
jb 0x4e62c0
ja 0x4e6063
cmp esi, dword [ebp]
jb 0x4e62c0
jmp 0x4e6063
test esi, esi
je 0x4e6063
jmp case.0x4e5fdf.22
mov esi, dword [esp + 0x10]
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x34], ebp
xor edi, edi
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
cmp dword [esi + 0x7c], eax
jb 0x4e6519
ja 0x4e635f
cmp dword [esi + 0x78], eax
jbe 0x4e6519
mov edx, dword [esp + 0x18]
add edx, 0x3c
mov ebx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
test eax, eax
je 0x4e6379
cmp byte [eax + ecx], 0
jne 0x4e637d
or dword [edx - 0x2c], 0x10
movzx esi, word [edx + 6]
mov ecx, dword [edx - 0x2c]
mov dword [edx], esi
test cl, 0x10
je 0x4e63cf
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0x38]
mov ebp, dword [esp + 0x34]
jae 0x4e5eeb
test esi, esi
mov eax, esi
mov esi, 0x81b6
cmove eax, esi
mov esi, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x40]
cmp byte [esi + eax], 0
je 0x4e63c5
or ecx, 8
mov dword [edx - 0x2c], ecx
inc esi
mov dword [esp + 0x2c], esi
jmp 0x4e6464
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4e63df
lea eax, [ecx + 1]
jmp 0x4e63f0
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp byte [ecx + ebx], al
sete al
inc ebx
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x4e6405
test eax, eax
mov ecx, 0x41ff
mov eax, 0x81b6
cmove ecx, eax
jmp 0x4e6425
mov ecx, esi
test eax, eax
je 0x4e6427
mov eax, esi
and eax, 0xf000
cmp eax, 0x4000
je 0x4e6427
and ecx, 0xffff4fff
or ecx, 0x4000
mov dword [edx], ecx
and ecx, 0xf000
cmp ecx, 0x4000
jne 0x4e6461
mov ecx, dword [edx - 0x3c]
cmp ecx, 2
jb 0x4e6461
mov eax, dword [edx - 0x38]
cmp byte [ecx + eax - 2], 0x2f
jne 0x4e644e
cmp byte [ecx + eax - 1], 0
je 0x4e6461
mov byte [ecx + eax], 0x2f
mov eax, dword [edx - 0x3c]
mov ecx, dword [edx - 0x38]
mov byte [ecx + eax + 1], 0
add dword [edx - 0x3c], 2
or ebx, 0xffffffff
mov dword [edx - 0x30], ebx
test byte [edx + 4], 1
je 0x4e6473
and dword [edx], 0xffffff6d
mov esi, dword [edx - 0x2c]
and esi, 0x10
test ebp, ebp
jne 0x4e64c5
test esi, esi
jne 0x4e648a
mov dword [edx - 0x34], 0xffffffff
jmp 0x4e64ef
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add ecx, 0x50
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
imul eax, edi, 0x68
add ecx, eax
xor eax, eax
cmp eax, ebp
ja 0x4e5eeb
jb 0x4e64b4
cmp edi, ebx
jae 0x4e5eeb
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x4e64c1
inc edi
add ecx, 0x68
jmp 0x4e64a0
mov ebp, dword [esp + 0x34]
mov dword [edx - 0x34], edi
test esi, esi
je 0x4e64ef
mov esi, dword [esp + 0x1c]
inc ebp
imul eax, edi, 0x68
xor ecx, ecx
mov dword [esp + 0x34], ebp
cmp ecx, dword [eax + esi + 0x54]
jb 0x4e64ef
ja 0x4e64e8
cmp ebp, dword [eax + esi + 0x50]
jb 0x4e64ef
inc edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, dword [esp + 0x20]
add edx, 0x48
inc ecx
mov dword [esp + 0x20], ecx
cmp eax, dword [esi + 0x7c]
mov eax, dword [esp + 0x2c]
jb 0x4e6366
ja 0x4e6519
cmp ecx, dword [esi + 0x78]
jb 0x4e6366
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret