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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40fe68
sub esp, 0x7c
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov eax, ebx
xor ecx, ecx
mov edi, ecx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x28], edi
cmp ecx, 8
jb 0x40f771
cmp edx, 1
jne 0x40f745
xchg edi, eax
mov byte [ebx], al
xchg edi, eax
inc ebx
shr edi, 8
add ecx, 0xfffffff8
jmp 0x40f722
and edi, 0xf
or edi, 0xf0
xchg edi, eax
mov byte [ebx], al
xchg edi, eax
dec ebx
mov edi, dword [esp + 0x28]
shr edi, 4
and edi, 0xf
or edi, 0xf0
xchg edi, eax
mov byte [ebx], al
xchg edi, eax
dec ebx
mov edi, dword [esp + 0x28]
shr edi, 8
jmp 0x40f740
movzx edx, byte [esi]
mov dword [esp + 0x30], edx
inc esi
and edx, 0x7f
mov ebx, dword [esp + 0x30]
test ebx, 0x80
jne 0x40f91d
test ebx, 0x7f
jne 0x40f831
test ebp, ebp
je 0x40f7b9
xor edx, edx
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x8c]
mov esi, ebp
mov ebp, edx
mov edx, dword [esp + 0x8c]
jmp 0x40f71b
mov edx, dword [esp + 0x8c]
cmp edx, 1
jne 0x40f7fb
mov edx, dword [esp + 0x70]
mov ebx, edx
sub ebx, eax
lea eax, [ecx + ebx*8]
mov ebx, ecx
neg ecx
and ecx, 7
add ecx, ebx
test ecx, ecx
jbe 0x40f7f0
xchg edi, eax
mov byte [edx], al
xchg edi, eax
add ecx, 0xfffffff8
mov ebx, edx
inc ebx
mov edx, ebx
shr edi, 8
test ecx, ecx
ja 0x40f7dd
mov dword [esp + 0x90], eax
add esp, 0x7c
ret
mov edx, dword [esp + 0x70]
mov ebx, edx
sub eax, ebx
lea eax, [ecx + eax*4]
mov ebx, ecx
neg ecx
and ecx, 3
add ecx, ebx
test ecx, ecx
jbe 0x40f7f0
mov ebx, edi
and edi, 0xf
or edi, 0xf0
xchg edi, eax
mov byte [edx], al
xchg edi, eax
add ecx, 0xfffffffc
mov ebp, edx
dec ebp
mov edx, ebp
shr ebx, 4
mov edi, ebx
jmp 0x40f80f
shr edx, 3
mov dword [esp + 0xc], edx
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x20]
cmp ebp, edx
jae 0x40f8a9
movzx ebx, byte [esi]
shl ebx, cl
cmp ecx, 0x20
sbb edx, edx
and ebx, edx
or ebx, edi
mov edx, esi
inc edx
mov esi, dword [esp + 0x8c]
cmp esi, 1
jne 0x40f8e5
mov edi, dword [esp + 0x6c]
mov byte [edi], bl
inc edi
shr ebx, 8
inc ebp
mov dword [esp + 0x20], ebp
mov esi, edx
mov dword [esp + 0x6c], edi
mov edi, ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x84]
mov ebp, dword [esp + 0x20]
cmp ebp, edx
jb 0x40f85e
mov edx, ebx
and ebx, 7
test edx, 7
jbe 0x40f8dd
movzx edx, byte [esi]
shl edx, cl
cmp ecx, 0x20
sbb ebp, ebp
and edx, ebp
or edx, edi
mov ebp, esi
inc ebp
add ebx, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x6c]
mov edi, edx
mov edx, dword [esp + 0x84]
jmp 0x40f7a2
mov ebx, ecx
mov ebp, esi
mov edx, edi
jmp 0x40f8c9
mov edi, ebx
and ebx, 0xf
or ebx, 0xf0
mov eax, dword [esp + 0x6c]
mov byte [eax], bl
dec eax
mov ebx, edi
shr edi, 4
and edi, 0xf
or edi, 0xf0
xchg edi, ebx
mov byte [eax], bl
xchg edi, ebx
dec eax
mov edi, eax
shr ebx, 8
mov eax, dword [esp + 0x88]
jmp 0x40f885
test ebx, 0x7f
jne 0x40fe61
xor ebx, ebx
movzx ebp, byte [esi]
mov dword [esp + 0x30], ebp
inc esi
and ebp, 0x7f
mov ecx, ebx
shl ebp, cl
cmp ecx, 0x20
sbb edi, edi
and edi, ebp
or edi, edx
mov edx, dword [esp + 0x30]
test edx, 0x80
je 0x40f965
lea ebx, [ecx + 7]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x84]
mov edx, edi
mov edi, dword [esp + 0x28]
jmp 0x40f92b
mov dword [esp + 0x1c], edi
xor ecx, ecx
xor edx, edx
movzx ebx, byte [esi]
mov ebp, esi
inc ebp
mov dword [esp + 0x78], ebp
mov esi, ebx
and ebx, 0x7f
shl ebx, cl
cmp ecx, 0x20
sbb edi, edi
and ebx, edi
or ebx, edx
test esi, 0x80
je 0x40f99c
add ecx, 7
mov edi, dword [esp + 0x1c]
mov esi, ebp
mov edx, ebx
jmp 0x40f96d
mov edx, dword [esp + 0x1c]
imul ebx, edx
cmp edx, 0x19
ja 0x40fc29
mov esi, dword [esp + 0x8c]
cmp esi, 1
jne 0x40fbb9
mov edi, dword [esp + 0x70]
mov ecx, ebp
mov ebp, edi
dec ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 8]
cmp esi, edx
jae 0x40fa21
mov eax, dword [esp]
shl eax, 8
movzx ecx, byte [ebp]
or eax, ecx
mov ecx, ebp
dec ecx
mov ebp, ecx
lea ecx, [esi + 8]
mov esi, dword [esp + 0x8c]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 8]
cmp esi, edx
jb 0x40f9ec
mov ebp, dword [esp]
cmp esi, edx
jbe 0x40fbb2
sub esi, edx
mov ecx, esi
shr ebp, cl
cmp ecx, 0x20
sbb esi, esi
and ebp, esi
mov dword [esp + 0x14], edx
cmp edx, 1
jne 0x40fb42
cmp ebp, 1
jne 0x40fb39
mov ecx, 0x19
mov edx, 0x1ffffff
mov dword [esp + 8], ecx
mov dword [esp], edx
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x74], edi
cmp ebx, ecx
jb 0x40face
mov ecx, dword [esp + 0x10]
shl edx, cl
cmp ecx, 0x20
sbb ebx, ebx
and ebx, edx
or ebx, esi
mov edx, dword [esp + 8]
lea esi, [ecx + edx]
cmp ebp, 1
jne 0x40fb18
cmp esi, 8
jb 0x40faad
mov byte [edi], bl
mov ecx, edi
inc ecx
mov edi, ecx
shr ebx, 8
add esi, 0xfffffff8
cmp esi, 8
jae 0x40fa9b
mov ecx, dword [esp + 0x24]
sub ecx, edx
mov edx, dword [esp]
mov dword [esp + 0x10], esi
mov esi, ebx
mov ebx, ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x74], edi
cmp ebx, ecx
jae 0x40fa77
test ebx, ebx
jbe 0x40fb10
mov ecx, ebx
mov ebp, 1
shl ebp, cl
cmp ecx, 0x20
sbb edi, edi
and edi, ebp
lea ebp, [edi - 1]
and ebp, edx
mov ecx, dword [esp + 0x10]
shl ebp, cl
cmp ecx, 0x20
sbb edx, edx
and edx, ebp
or edx, esi
add ebx, ecx
mov ecx, ebx
mov ebp, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edi, edx
mov edx, dword [esp + 0x84]
jmp 0x40f7a2
mov ebx, dword [esp + 0x10]
mov edx, esi
jmp 0x40faf8
cmp esi, 4
jb 0x40faad
mov ecx, ebx
and ebx, 0xf
or ebx, 0xf0
mov byte [edi], bl
mov ebx, edi
dec ebx
mov edi, ebx
shr ecx, 4
add esi, 0xfffffffc
mov ebx, ecx
jmp 0x40fb18
mov ecx, ebx
mov edx, ebp
jmp 0x40fa59
lea esi, [edx + edx]
cmp esi, 0x19
ja 0x40fbac
mov ecx, edx
mov dword [esp + 0x2c], ebp
cmp edx, 0x20
ja 0x40fb76
mov ecx, edx
shl ebp, cl
cmp ecx, 0x20
sbb esi, esi
and ebp, esi
mov esi, dword [esp + 0x2c]
or ebp, esi
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
cmp edx, 0x20
jbe 0x40fb55
test ecx, ecx
je 0x40fba5
mov eax, 0x19
xor edx, edx
div ecx
imul ecx, eax
mov edx, 1
shl edx, cl
cmp ecx, 0x20
sbb esi, esi
and esi, edx
lea edx, [esi - 1]
and edx, ebp
mov eax, dword [esp + 0x88]
jmp 0x40fa59
call fcn.00424740
ud2
mov ecx, edx
mov edx, ebp
jmp 0x40fb99
mov edx, esi
jmp 0x40fa39
mov edi, dword [esp + 0x70]
mov ecx, ebp
mov ebp, edi
inc ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 8]
cmp esi, edx
jae 0x40fc21
mov eax, dword [esp]
shl eax, 4
movzx ecx, byte [ebp]
and ecx, 0xf
or eax, ecx
mov ecx, ebp
inc ecx
mov ebp, ecx
lea ecx, [esi + 4]
mov esi, dword [esp + 0x8c]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 8]
cmp esi, edx
jb 0x40fbe9
mov ebp, dword [esp]
jmp 0x40fa24
mov esi, dword [esp + 0x10]
sub edx, esi
mov dword [esp + 4], edx
mov edi, dword [esp + 0x8c]
cmp edi, 1
jne 0x40fd42
mov edi, dword [esp + 0x70]
mov ebp, edi
lea edi, [edx + 7]
shr edi, 3
sub ebp, edi
mov dword [esp + 0x30], ebp
mov edi, ebp
and edx, 7
mov ebp, dword [esp + 4]
test ebp, 7
je 0x40fd37
movzx ebp, byte [edi]
lea edi, [edx - 8]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov ecx, edi
shr ebp, cl
cmp ecx, 0x20
sbb edi, edi
and ebp, edi
mov ecx, esi
shl ebp, cl
cmp ecx, 0x20
sbb edi, edi
and edi, ebp
mov ebp, dword [esp + 0x28]
or edi, ebp
mov ebp, dword [esp + 0x30]
inc ebp
lea esi, [ecx + edx]
sub ebx, edx
mov dword [esp + 0x24], ebx
mov ecx, ebx
shr ebx, 3
mov edx, dword [esp + 0x70]
mov dword [esp + 0x64], edx
test ebx, ebx
jbe 0x40fce7
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
cmp ecx, 0x20
sbb ecx, ecx
and ecx, eax
or edi, ecx
mov eax, ebp
inc eax
mov ebp, eax
xchg edi, eax
mov byte [edx], al
xchg edi, eax
dec ebx
mov eax, edx
inc eax
mov edx, eax
shr edi, 8
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x64], edx
test ebx, ebx
ja 0x40fcb1
mov ebx, ecx
and ecx, 7
test ebx, 7
jbe 0x40fd31
movzx ebx, byte [ebp]
mov ebp, 1
shl ebp, cl
dec ebp
and ebx, ebp
mov ebp, ecx
mov ecx, esi
shl ebx, cl
cmp ecx, 0x20
sbb edx, edx
and edx, ebx
or edx, edi
lea ebx, [ebp + ecx]
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x78]
mov edi, edx
mov edx, dword [esp + 0x84]
mov esi, ecx
mov ecx, ebx
mov ebx, esi
jmp 0x40f7a2
mov ebx, esi
mov edx, edi
jmp 0x40fd15
mov ebp, edi
mov edi, dword [esp + 0x28]
jmp 0x40fc9c
mov edi, dword [esp + 0x70]
mov ebp, edi
mov dword [esp + 0x30], ebp
lea edi, [edx + 3]
shr edi, 2
mov dword [esp + 0x18], edi
add ebp, edi
and edx, 3
mov edi, dword [esp + 4]
test edi, 3
je 0x40fe58
movzx ebp, byte [ebp]
and ebp, 0xf
lea edi, [edx - 4]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov ecx, edi
shr ebp, cl
cmp ecx, 0x20
sbb edi, edi
and edi, ebp
mov ecx, esi
shl edi, cl
cmp ecx, 0x20
sbb ebp, ebp
and ebp, edi
mov edi, dword [esp + 0x28]
or ebp, edi
mov dword [esp + 0x28], ebp
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
lea ebp, [ebp + edi - 1]
lea esi, [ecx + edx]
sub ebx, edx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov edx, ebx
shr ebx, 2
mov edi, dword [esp + 0x70]
mov dword [esp + 0x68], edi
mov dword [esp + 0x28], ecx
test ebx, ebx
jbe 0x40fe15
movzx eax, byte [ebp]
and eax, 0xf
mov ecx, esi
shl eax, cl
cmp ecx, 0x20
sbb edx, edx
and edx, eax
mov eax, dword [esp + 0x28]
or edx, eax
mov eax, ebp
dec eax
mov ebp, eax
mov eax, edx
and edx, 0xf
or edx, 0xf0
mov byte [edi], dl
dec ebx
mov edx, edi
dec edx
mov edi, edx
shr eax, 4
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x68], edi
mov dword [esp + 0x28], ecx
test ebx, ebx
ja 0x40fdc9
mov ebx, edx
and edx, 3
test ebx, 3
jbe 0x40fe52
movzx ebx, byte [ebp]
mov ebp, ecx
mov ecx, edx
mov edi, 1
shl edi, cl
dec edi
and edi, ebx
mov ecx, esi
shl edi, cl
cmp ecx, 0x20
sbb ebx, ebx
and ebx, edi
or ebx, ebp
add edx, ecx
mov ecx, dword [esp + 0x68]
mov ebp, ebx
mov ebx, edx
mov edx, ebp
jmp 0x40fd19
mov edx, esi
mov ebx, ecx
jmp 0x40fe43
mov ecx, dword [esp + 0x28]
jmp 0x40fdb0
mov edi, edx
jmp 0x40f965
call fcn.004486b0
jmp fcn.0040f6e0