Function at 0x4e4e70
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 0x4e4ea2
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
cmp byte [eax], 1
jne 0x4e4eeb
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
cmp byte [eax], 2
jne 0x4e4f05
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
cmp byte [eax], 0
je 0x4e4ef6
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004e4280
add esp, 8
test eax, eax
js 0x4e4eeb
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
jne 0x4e4ec5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
cmp byte [eax], 4
jne 0x4e4f27
push edi
push ebx
call fcn.004e56c0
add esp, 8
test eax, eax
js 0x4e4eeb
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
mov al, byte [eax]
test al, al
je 0x4e5519
cmp al, 5
jne 0x4e4eeb
lea ebp, [edi + 0x78]
push ebp
push ebx
call fcn.004e4280
add esp, 8
test eax, eax
js 0x4e4eeb
cmp dword [ebp + 4], 0
mov eax, dword [ebp]
ja 0x4e4eeb
jb 0x4e4f58
cmp eax, 0x5f5e100
ja 0x4e4eeb
push 0x48
push eax
call fcn.00561749
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
mov dword [edi + 0x80], esi
test esi, esi
je 0x4e4eeb
push 1
push ebx
mov dword [esp + 0x1c], 0
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
movzx edi, byte [eax]
test edi, edi
je 0x4e5328
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004e4280
add esp, 8
test eax, eax
js 0x4e4eeb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x54]
cmp eax, dword [esp + 0x24]
jb 0x4e4eeb
mov esi, dword [esp + 0x20]
ja 0x4e4fd3
cmp dword [ecx + 0x50], esi
jb 0x4e4eeb
lea eax, [edi - 0xe]
cmp eax, 0xb
ja case.0x4e4fdf.22
jmp dword [eax*4 + 0x4e5524]
mov esi, dword [esp + 0x30]
cmp dword [esi + 8], 0
jne 0x4e4eeb
push 1
push dword [ebp]
call fcn.00561749
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x4e4eeb
push dword [ebp]
push eax
push ebx
call fcn.004e4520
add esp, 0xc
test eax, eax
js 0x4e4eeb
mov esi, dword [ebp + 4]
xor edi, edi
mov edx, dword [ebp]
xor ecx, ecx
mov dword [esp + 0x14], edi
test esi, esi
jb 0x4e5063
ja 0x4e5039
test edx, edx
je 0x4e5063
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 0x4e5042
ja 0x4e505b
cmp ecx, edx
jb 0x4e5042
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x2c]
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
jne 0x4e4f92
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x14]
test edi, edi
jg 0x4e509d
push esi
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
jmp 0x4e5063
mov esi, dword [esp + 0x30]
cmp dword [esi + 0xc], 0
jne 0x4e4eeb
push 1
push edi
call fcn.00561749
mov dword [esi + 0xc], eax
add esp, 8
test eax, eax
je 0x4e4eeb
push edi
push eax
push ebx
call fcn.004e4520
add esp, 0xc
test eax, eax
js 0x4e4eeb
jmp 0x4e5063
mov edi, dword [esp + 0x14]
test edi, edi
jle case.0x4e4fdf.22
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x10], 0
jne 0x4e4eeb
push 1
push edi
call fcn.00561749
mov dword [esi + 0x10], eax
jmp 0x4e50b6
push edi
push dword [esp + 0x34]
push ebx
call fcn.004e5cb0
jmp 0x4e50c9
push 1
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
lea ebx, [esi - 1]
test bl, 1
jne 0x4e4eeb
mov ecx, dword [ebp]
xor edx, edx
mov eax, dword [ebp + 4]
shld eax, ecx, 2
shl ecx, 2
cmp edx, eax
jb 0x4e4eeb
ja 0x4e5146
cmp ebx, ecx
jb 0x4e4eeb
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x88], edx
jne 0x4e4eeb
push ebx
call fcn.00561723
mov ecx, dword [esp + 0x14]
mov ebp, eax
add esp, 4
mov dword [ecx + 0x88], ebp
test ebp, ebp
je 0x4e4eeb
mov edi, ebx
test ebx, ebx
je 0x4e51ba
nop dword [eax]
cmp edi, 0x10000
mov eax, 0x10000
mov esi, edi
cmova esi, eax
push esi
push dword [esp + 0x30]
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
push esi
push eax
push ebp
call fcn.0046f2b0
add esp, 0xc
add ebp, esi
sub edi, esi
jne 0x4e5180
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x88]
lea ebp, [ecx + 0x78]
xor esi, esi
cmp dword [ebp + 4], esi
jb 0x4e505f
ja 0x4e51d9
cmp dword [ebp], esi
jbe 0x4e505f
mov edx, dword [esp + 0x18]
add edx, 4
mov dword [edx], eax
cmp ebx, 2
jb 0x4e4eeb
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x4e51fb
cmp byte [eax + 1], 0
je 0x4e5211
sub ebx, 2
add eax, 2
cmp ebx, 2
jae 0x4e51f0
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 0x4e51e0
ja 0x4e505f
cmp esi, dword [ebp]
jb 0x4e51e0
jmp 0x4e505f
push 2
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
mov esi, dword [esp + 0x30]
mov al, byte [eax]
mov byte [esp + 0x34], al
cmp dword [esi + 0x14], 0
jne 0x4e4eeb
push 1
push dword [ebp]
call fcn.00561749
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
je 0x4e4eeb
cmp byte [esp + 0x34], 0
push dword [ebp]
je 0x4e528f
push 1
push eax
call fcn.0046bb30
add esp, 0xc
jmp 0x4e52a1
push eax
push ebx
call fcn.004e4520
add esp, 0xc
test eax, eax
js 0x4e4eeb
xor esi, esi
cmp dword [ebp + 4], esi
jb 0x4e5063
ja 0x4e52b7
cmp dword [ebp], esi
jbe 0x4e5063
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 0x4e5300
push 4
push ebx
call fcn.004e3af0
add esp, 8
test eax, eax
je 0x4e4eeb
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 0x4e52c0
ja 0x4e5063
cmp esi, dword [ebp]
jb 0x4e52c0
jmp 0x4e5063
test esi, esi
je 0x4e5063
jmp case.0x4e4fdf.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 0x4e5519
ja 0x4e535f
cmp dword [esi + 0x78], eax
jbe 0x4e5519
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 0x4e5379
cmp byte [eax + ecx], 0
jne 0x4e537d
or dword [edx - 0x2c], 0x10
movzx esi, word [edx + 6]
mov ecx, dword [edx - 0x2c]
mov dword [edx], esi
test cl, 0x10
je 0x4e53cf
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0x38]
mov ebp, dword [esp + 0x34]
jae 0x4e4eeb
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 0x4e53c5
or ecx, 8
mov dword [edx - 0x2c], ecx
inc esi
mov dword [esp + 0x2c], esi
jmp 0x4e5464
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4e53df
lea eax, [ecx + 1]
jmp 0x4e53f0
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 0x4e5405
test eax, eax
mov ecx, 0x41ff
mov eax, 0x81b6
cmove ecx, eax
jmp 0x4e5425
mov ecx, esi
test eax, eax
je 0x4e5427
mov eax, esi
and eax, 0xf000
cmp eax, 0x4000
je 0x4e5427
and ecx, 0xffff4fff
or ecx, 0x4000
mov dword [edx], ecx
and ecx, 0xf000
cmp ecx, 0x4000
jne 0x4e5461
mov ecx, dword [edx - 0x3c]
cmp ecx, 2
jb 0x4e5461
mov eax, dword [edx - 0x38]
cmp byte [ecx + eax - 2], 0x2f
jne 0x4e544e
cmp byte [ecx + eax - 1], 0
je 0x4e5461
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 0x4e5473
and dword [edx], 0xffffff6d
mov esi, dword [edx - 0x2c]
and esi, 0x10
test ebp, ebp
jne 0x4e54c5
test esi, esi
jne 0x4e548a
mov dword [edx - 0x34], 0xffffffff
jmp 0x4e54ef
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 0x4e4eeb
jb 0x4e54b4
cmp edi, ebx
jae 0x4e4eeb
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x4e54c1
inc edi
add ecx, 0x68
jmp 0x4e54a0
mov ebp, dword [esp + 0x34]
mov dword [edx - 0x34], edi
test esi, esi
je 0x4e54ef
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 0x4e54ef
ja 0x4e54e8
cmp ebp, dword [eax + esi + 0x50]
jb 0x4e54ef
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 0x4e5366
ja 0x4e5519
cmp ecx, dword [esi + 0x78]
jb 0x4e5366
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret