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

Disassembly:
jmp 0x4ae4c0
sub esp, 0x6c
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
xor ecx, ecx
push ebx
push edi
lea edi, [eax + edx]
cmp eax, edi
mov edx, dword [esp + 0x88]
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], edi
mov byte [esp + 0x7c], cl
mov byte [esp + 0xb], cl
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov dword [edx], ecx
je 0x4ae50f
mov ebx, dword [0x843bf8]
lea ecx, [ecx]
movzx ecx, byte [eax]
test byte [ecx + ebx + 1], 8
je 0x4ae520
inc eax
cmp eax, edi
jne 0x4ae500
pop edi
mov dword [edx], 1
mov eax, 0xfffffffe
pop ebx
add esp, 0x6c
ret
cmp eax, edi
je 0x4ae50f
movzx ecx, byte [eax]
test byte [ecx + ebx + 1], 4
je 0x4ae50f
mov byte [esp + 0x78], 0
mov ecx, eax
push esi
mov dl, byte [ecx]
movzx esi, dl
test byte [esi + ebx + 1], 4
jne 0x4ae547
cmp dl, 0x54
jne 0x4ae54c
inc ecx
cmp ecx, edi
jne 0x4ae536
movzx edx, byte [0x81f7c8]
mov esi, ecx
push ebp
xor ebp, ebp
sub esi, eax
cmp ecx, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + edx*4 + 0x5c], ebp
je 0x4ae607
cmp byte [ecx], 0x2e
je 0x4ae607
mov dl, byte [0x81f7c8]
cmp dl, 3
jb 0x4ae5f6
cmp ecx, edi
jae 0x4ae5b1
movzx esi, byte [ecx]
test byte [esi + ebx + 1], 8
jne 0x4ae597
inc ecx
cmp ecx, edi
jb 0x4ae586
jmp 0x4ae5af
cmp ecx, edi
jae 0x4ae5b1
jmp 0x4ae5a0
movzx esi, byte [ecx]
test byte [esi + ebx + 1], 4
jne 0x4ae5af
inc ecx
cmp ecx, edi
jb 0x4ae5a0
cmp ecx, edi
jne 0x4ae5f6
test byte [esp + 0x8c], 2
je 0x4ae5d7
mov edx, dword [esp + 0x90]
pop ebp
pop esi
pop edi
mov dword [edx], 1
mov eax, 0xfffffffe
pop ebx
add esp, 0x6c
ret
xor ecx, ecx
mov ebp, 5
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], ebp
xor ecx, ecx
test dl, dl
mov edx, dword [esp + 0x2c]
sete cl
lea ecx, [ecx + ecx + 2]
jmp 0x4ae62c
cmp esi, 4
je 0x4ae61b
cmp esi, 8
je 0x4ae61b
cmp esi, 0xe
mov ecx, 2
jb 0x4ae620
mov ecx, 4
mov dword [esp + 0x24], ecx
mov byte [esp + 0x80], 1
mov bl, byte [0x81f7c8]
mov dword [esp + 0x18], ecx
mov cl, byte [0x81f7c9]
cmp bl, cl
ja 0x4ae643
movzx edx, cl
movzx ecx, byte [0x81f7ca]
cmp edx, ecx
jae 0x4ae650
mov edx, ecx
movzx ecx, byte [0x81f7ce]
mov esi, 1
shl esi, cl
mov dword [esp + 0x38], ecx
mov edi, 1
mov ecx, edx
shl edi, cl
mov dword [esp + 0x20], 0
or esi, edi
and esi, 0xf
cmp ebp, 7
mov dword [esp + 0x34], esi
mov esi, ebp
jae 0x4ae867
mov ebp, dword [0x843bf8]
lea ecx, [ecx]
mov ebx, dword [esp + 0x14]
cmp eax, ebx
je 0x4ae813
mov cl, byte [eax]
movzx edx, cl
test byte [edx + ebp + 1], 4
je 0x4ae813
sub cl, 0x30
mov edi, eax
inc eax
cmp eax, ebx
movzx edx, cl
je 0x4ae6f8
mov ebp, dword [0x843bf8]
nop
mov cl, byte [eax]
movzx ebx, cl
test byte [ebx + ebp + 1], 4
je 0x4ae6f2
mov bl, byte [esp + 0x80]
test bl, bl
je 0x4ae6dd
dec dword [esp + 0x18]
je 0x4ae6f2
sub cl, 0x30
movzx ecx, cl
lea edx, [edx + edx*4]
lea edx, [ecx + edx*2]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
jne 0x4ae6c0
mov ebp, dword [0x843bf8]
mov ebx, dword [esp + 0x14]
mov ecx, eax
sub ecx, edi
cmp edx, 0xf423f
mov dword [esp + esi*4 + 0x5c], ecx
ja 0x4ae5bd
mov edi, dword [esp + 0x20]
mov cl, byte [esi + 0x81f7c9]
or edi, edx
mov dword [esp + esi*4 + 0x3c], edx
xor edx, edx
test cl, cl
sete dl
cmp eax, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
lea edx, [edx + edx + 2]
mov dword [esp + 0x18], edx
je 0x4ae84a
movzx ecx, byte [0x81f7ca]
cmp esi, ecx
jne 0x4ae755
cmp byte [eax], 0x54
jne 0x4ae755
inc eax
jmp 0x4ae809
movzx ecx, byte [0x81f7cd]
cmp esi, ecx
jne 0x4ae780
cmp byte [eax], 0x2e
jne 0x4ae809
inc eax
mov dword [esp + 0x18], 6
jmp 0x4ae809
movzx edx, byte [eax]
mov cl, byte [edx + ebp + 1]
test cl, 0x18
je 0x4ae7b6
test cl, 8
je 0x4ae7a9
mov ecx, esi
mov edx, 1
shl edx, cl
test dword [esp + 0x34], edx
je 0x4ae84d
mov byte [esp + 0x13], 1
inc eax
cmp eax, ebx
mov byte [esp + 0x84], 1
jne 0x4ae780
cmp esi, dword [esp + 0x38]
jne 0x4ae805
mov cl, byte [0x81f7cf]
inc esi
cmp cl, 0xff
je 0x4ae805
lea edx, [eax + 2]
cmp edx, ebx
ja 0x4ae805
mov cl, byte [eax + 1]
cmp cl, 0x4d
je 0x4ae7dc
cmp cl, 0x6d
jne 0x4ae805
mov cl, byte [eax]
cmp cl, 0x70
je 0x4ae7e8
cmp cl, 0x50
jne 0x4ae809
mov eax, edx
cmp eax, ebx
mov dword [esp + 0x30], 0xc
je 0x4ae805
movzx ecx, byte [eax]
test byte [ecx + ebp + 1], 8
je 0x4ae805
inc eax
cmp eax, ebx
jne 0x4ae7f6
mov dword [esp + 0x1c], eax
inc esi
cmp esi, 7
jb 0x4ae690
mov al, byte [esp + 0x84]
test al, al
je 0x4ae867
mov al, byte [esp + 0x13]
test al, al
jne 0x4ae867
test byte [esp + 0x8c], 2
je 0x4ae867
mov ecx, dword [esp + 0x90]
pop ebp
pop esi
pop edi
mov dword [ecx], 1
mov eax, 0xfffffffe
pop ebx
add esp, 0x6c
ret
inc esi
jmp 0x4ae813
mov eax, dword [esp + 0x90]
pop ebp
pop esi
pop edi
mov dword [eax], 1
mov eax, 0xfffffffe
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ebx, esi
sub ebx, ecx
cmp esi, 8
mov dword [esp + 0x84], ebx
jae 0x4ae8aa
mov edx, 8
sub edx, esi
shl edx, 2
mov ecx, edx
shr ecx, 2
xor eax, eax
lea edi, [esp + esi*4 + 0x3c]
rep stosd dword es:[edi], eax
lea ebx, [esp + esi*4 + 0x5c]
mov ecx, edx
mov edi, ebx
mov ebx, dword [esp + 0x84]
shr ecx, 2
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x80]
test al, al
jne 0x4ae985
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + eax*4 + 0x5c]
test edi, edi
je 0x4ae5bd
mov esi, dword [esp + 0x88]
mov eax, dword [esp + eax*4 + 0x3c]
mov dword [esi], eax
movzx ecx, byte [0x81f7c9]
mov edx, dword [esp + ecx*4 + 0x3c]
mov dword [esi + 4], edx
movzx eax, byte [0x81f7ca]
mov ecx, dword [esp + eax*4 + 0x3c]
mov dword [esi + 8], ecx
movzx edx, byte [0x81f7cb]
mov eax, dword [esp + edx*4 + 0x3c]
mov dword [esi + 0xc], eax
movzx ecx, byte [0x81f7cc]
mov edx, dword [esp + ecx*4 + 0x3c]
mov dword [esi + 0x10], edx
movzx eax, byte [0x81f7cd]
mov ecx, dword [esp + eax*4 + 0x3c]
mov dword [esi + 0x14], ecx
movzx eax, byte [0x81f7ce]
mov ecx, dword [esp + eax*4 + 0x5c]
cmp ecx, 6
jae 0x4ae945
lea edx, [ecx*8]
mov ecx, 0x81f758
sub ecx, edx
mov edx, dword [ecx]
imul edx, dword [esp + eax*4 + 0x3c]
mov dword [esp + eax*4 + 0x3c], edx
mov eax, dword [esp + eax*4 + 0x3c]
mov dword [esi + 0x18], eax
cmp byte [0x81f7cf], 0xff
je 0x4ae9e0
mov eax, dword [esi + 0xc]
cmp eax, 0xc
jbe 0x4ae973
mov ecx, dword [esp + 0x90]
mov dword [ecx], 1
jmp 0x4aeaf7
xor edx, edx
mov ecx, 0xc
div ecx
add edx, dword [esp + 0x30]
mov dword [esi + 0xc], edx
jmp 0x4ae9e0
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x74]
cmp eax, 6
mov dword [esi], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], ecx
jae 0x4ae9d5
lea edx, [eax*8]
mov eax, 0x81f758
sub eax, edx
mov eax, dword [eax]
imul eax, dword [esp + 0x54]
jmp 0x4ae9d9
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x18], eax
cmp edi, 2
mov edx, dword [esp + 0x20]
mov byte [esi + 0x1c], 0
jne 0x4aea05
test edx, edx
je 0x4aea05
mov eax, dword [esi]
cmp eax, 0x46
sbb ecx, ecx
and ecx, 0x64
add ecx, 0x76c
add ecx, eax
mov dword [esi], ecx
cmp ebx, 3
jb 0x4aeabc
cmp dword [esi], 0x270f
ja 0x4aeabc
cmp dword [esi + 4], 0xc
ja 0x4aeabc
cmp dword [esi + 8], 0x1f
ja 0x4aeabc
cmp dword [esi + 0xc], 0x17
ja 0x4aeabc
mov ecx, dword [esi + 0x10]
mov eax, 0x3b
cmp ecx, eax
ja 0x4aeabc
cmp dword [esi + 0x14], eax
ja 0x4aeabc
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
test edx, edx
setne cl
push edi
push eax
push ecx
push esi
call fcn.00406712
add esp, 0x10
test al, al
jne 0x4aeaf7
mov ecx, dword [esp + 0x1c]
mov edx, 3
cmp edx, ebx
mov edx, dword [esp + 0x14]
sbb eax, eax
neg eax
cmp ecx, edx
mov dword [esi + 0x20], eax
je 0x4aeab1
mov ecx, dword [0x843bf8]
movzx ebx, byte [ebp]
test byte [ebx + ecx + 1], 8
je 0x4aeaab
inc ebp
cmp ebp, edx
jne 0x4aea90
pop ebp
mov dword [esi + 0x20], eax
pop esi
pop edi
pop ebx
add esp, 0x6c
ret
mov dword [edi], 1
pop ebp
mov dword [esi + 0x20], eax
pop esi
pop edi
pop ebx
add esp, 0x6c
ret
test edx, edx
jne 0x4aeae7
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], ecx
je 0x4aeae7
mov eax, dword [0x843bf8]
nop
movzx edi, byte [ebp]
test byte [edi + eax + 1], 8
je 0x4aeae2
inc ebp
cmp ebp, ecx
jne 0x4aead0
jmp 0x4aeae7
mov edx, 1
mov ecx, dword [esp + 0x90]
xor eax, eax
test edx, edx
setne al
mov dword [ecx], eax
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
pop ebp
mov dword [esi + 0x20], edx
pop esi
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x6c
ret