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

Disassembly:
sub esp, 0x8c
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x54]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebp
mov edi, edi
mov ebx, dword [ebp*4 + 0x54067c]
lea eax, [ebx + 0xc]
xor esi, esi
xor edi, edi
cmp ebx, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jae 0x4e6f06
mov al, byte [ebx]
test al, al
je 0x4e6e20
movsx edx, al
mov eax, dword [esp + 0xa4]
push edx
push eax
call fcn.004b4180
add esp, 8
test eax, eax
je 0x4e6e0f
mov ecx, dword [esp + 0xa4]
push 1
push eax
push ecx
call fcn.004b6240
add esp, 0xc
test eax, eax
jne 0x4e6e0f
mov eax, dword [esp + 0x24]
cmp word [eax + 0x6e], 0
jle 0x4e6e0f
mov edx, dword [eax + 0x70]
mov ecx, eax
movsx eax, word [ecx + 0x6c]
xor esi, esi
or edi, 0xffffffff
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jle 0x4e6df4
mov ebx, dword [ecx + 0x78]
mov dword [esp + 0x30], eax
movsx edx, word [ebx]
cmp edx, esi
mov dword [esp + 0x38], edi
jle 0x4e6d5a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e6d28
cmp eax, 2
je 0x4e6d28
cmp eax, 3
je 0x4e6d28
cmp esi, edx
mov eax, esi
jg 0x4e6d5a
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + esi*8 + 4]
lea esp, [esp]
test edi, edi
jl 0x4e6d18
cmp dword [ecx], ebp
jge 0x4e6d1c
mov ebp, dword [ecx]
mov edi, eax
add eax, 1
add ecx, 8
cmp eax, edx
jle 0x4e6d10
jmp 0x4e6d4c
cmp esi, edx
mov eax, esi
jg 0x4e6d5a
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + esi*8 + 4]
test edi, edi
jl 0x4e6d3e
cmp dword [ecx], ebp
jle 0x4e6d42
mov ebp, dword [ecx]
mov edi, eax
add eax, 1
add ecx, 8
cmp eax, edx
jle 0x4e6d36
cmp edi, dword [esp + 0x38]
je 0x4e6d5a
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
add ebx, 2
sub dword [esp + 0x30], 1
lea esi, [edx + 1]
jne 0x4e6ce1
test edi, edi
jl 0x4e6df0
mov ecx, edi
mov edx, edi
mov ebx, dword [esp + 0x2c]
cmp ecx, ebx
jle 0x4e6d84
sub ecx, 1
jmp 0x4e6d88
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + ecx*8 + 4]
sub eax, ebp
add eax, 5
cmp eax, 0xa
ja 0x4e6da0
cmp ecx, edi
jne 0x4e6d77
mov edi, edi
cmp edx, dword [esp + 0x28]
jge 0x4e6dab
add edx, 1
jmp 0x4e6dad
mov edx, ebx
mov eax, dword [esi + edx*8 + 4]
sub eax, ebp
add eax, 5
cmp eax, 0xa
ja 0x4e6dbf
cmp edx, edi
jne 0x4e6da0
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x74]
mov cl, byte [eax + ecx]
and cl, 3
cmp cl, 1
jne 0x4e6ddb
mov dl, byte [eax + edx]
and dl, 3
cmp dl, cl
je 0x4e6df0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x6c], ebp
add eax, 1
mov dword [esp + 0x14], eax
jmp 0x4e6e03
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x3c], ebp
add eax, 1
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
add ebx, 1
cmp ebx, dword [esp + 0x34]
mov dword [esp + 0x20], ebx
jb 0x4e6c66
test esi, esi
jne 0x4e6e2c
test edi, edi
je 0x4e6f06
lea ecx, [esp + 0x6c]
mov ebx, edi
call fcn.004e5ca0
lea ecx, [esp + 0x3c]
mov ebx, esi
call fcn.004e5ca0
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 0x288]
lea ecx, [eax*8]
sub ecx, eax
add eax, 1
test esi, esi
lea ecx, [edx + ecx*4 + 0x28c]
mov dword [edx + 0x288], eax
jne 0x4e6e7e
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov eax, dword [esp + eax*4 + 0x6c]
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
jmp 0x4e6ea8
mov eax, esi
cdq
sub eax, edx
sar eax, 1
test edi, edi
jne 0x4e6e94
mov eax, dword [esp + eax*4 + 0x3c]
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
jmp 0x4e6ea8
mov edx, dword [esp + eax*4 + 0x3c]
mov dword [ecx], edx
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov eax, dword [esp + eax*4 + 0x6c]
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx]
cmp eax, esi
je 0x4e6ede
setg dl
test ebp, ebp
je 0x4e6ec6
cmp ebp, 2
je 0x4e6ec6
cmp ebp, 3
je 0x4e6ec6
xor edi, edi
jmp 0x4e6ecb
mov edi, 1
movzx edx, dl
xor edx, edi
je 0x4e6ede
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ecx], eax
mov dword [ecx + 0xc], eax
test ebp, ebp
mov dword [ecx + 0x18], 0
je 0x4e6ef3
cmp ebp, 2
je 0x4e6ef3
cmp ebp, 3
jne 0x4e6f06
cmp ebp, 3
mov dword [ecx + 0x18], 2
jne 0x4e6f06
mov dword [ecx + 0x18], 6
add ebp, 1
cmp ebp, 6
mov dword [esp + 0x1c], ebp
jl 0x4e6c40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret