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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x410599
sub esp, 0x84
mov ecx, dword [esp + 0x88]
xor ebx, ebx
mov ebx, dword [0x6c2500]
mov ebp, ecx
sub ebp, ebx
mov ebx, dword [0x6c2500]
sub ecx, ebx
shr ecx, 2
xor ebx, ebx
mov esi, dword [0x6c24f8]
mov ebp, ecx
shr ebp, 2
sub esi, ebp
dec esi
and ecx, 3
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], ecx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x50], ebp
mov ebx, dword [esp + 0x8c]
cmp ebx, 8
jne 0x40feec
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
cmp ebp, 4
jne 0x40fe3d
mov ebx, dword [esp + 0x90]
cmp ebx, 4
jne 0x40fde5
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x40fd98
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40fd94
shl ebx, cl
xor ebx, 0xffffffff
and ebx, edx
mov byte [eax], bl
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x11
cmp ecx, 8
jae 0x40fd90
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x40fd83
xor ebx, ebx
jmp 0x40fd65
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40fde1
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.004d4c40
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, 0x11
cmp ecx, 8
jae 0x40fddd
shl ebx, cl
mov byte [esp + 4], bl
call fcn.004d4c30
jmp 0x40fd89
xor ebx, ebx
jmp 0x40fdd0
xor ebx, ebx
jmp 0x40fdad
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x40fe14
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x40fe10
shl ebx, cl
or ebx, edx
mov byte [eax], bl
jmp 0x40fd89
xor ebx, ebx
jmp 0x40fe05
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x40fe39
shl ebx, cl
mov byte [esp + 4], bl
call fcn.004d4c30
jmp 0x40fd89
xor ebx, ebx
jmp 0x40fe29
mov ebx, dword [esp + 0x50]
movzx ebp, byte [ebx]
mov edi, ebp
and edi, 3
or edi, 0x10
mov dword [esp + 0x34], edi
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x40fea0
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40fe9c
shl ebx, cl
xor ebx, 0xffffffff
and ebx, edx
mov byte [eax], bl
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, edi
cmp ecx, 0x20
jae 0x40fe98
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x40fe8b
xor ebx, ebx
jmp 0x40fe70
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40fee8
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.004d4c40
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x34]
cmp ecx, 0x20
jae 0x40fee4
shl ebx, cl
mov byte [esp + 4], bl
call fcn.004d4c30
jmp 0x40fe91
xor ebx, ebx
jmp 0x40fed7
xor ebx, ebx
jmp 0x40feb5
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x5c], esi
mov ebx, dword [esp + 0x94]
movzx ebp, byte [ebx + 0xf]
mov ebx, ebp
and ebx, 0x40
cmp bl, 0
je 0x40ff96
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 0x14]
mov eax, 4
add ebx, eax
mov eax, ebx
mov dword [esp], esi
mov ebx, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov dword [esp + 8], ebp
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov dword [esp + 0xc], ebp
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
call fcn.004105b0
add esp, 0x84
ret
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x90]
cmp ebp, ebx
jae 0x410107
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
cmp ebx, 0x19
ja 0x41051c
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jae 0x410037
mov dword [esp + 0x48], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x20
jae 0x410515
shl ebx, cl
or ebx, dword [esp + 0x48]
mov ecx, ebx
inc edi
mov ebx, dword [esp + 0x2c]
add ebx, 8
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jb 0x410001
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
shr ebx, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x28]
add ebx, dword [esp + 0x28]
cmp ebx, 0x19
ja 0x4100fd
mov ebx, dword [esp + 0x38]
cmp ebx, 0x20
ja 0x4100ac
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
cmp ecx, 0x20
jae 0x41050e
shl ebx, cl
or ebx, ebp
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x38]
add ebx, dword [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x38]
cmp ebx, 0x20
jbe 0x41007a
mov ebx, 0x19
mov esi, eax
mov ecx, edx
mov ebp, dword [esp + 0x28]
mov eax, ebx
xor edx, edx
div ebp
mov ebx, eax
mov edx, ecx
mov eax, esi
imul ebx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x20]
mov ebx, 1
mov ecx, dword [esp + 0x38]
cmp ecx, 0x20
jae 0x410507
shl ebx, cl
dec ebx
and ebx, ebp
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
xor edi, edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], edi
xor ebp, ebp
cmp edi, ebp
je 0x410127
movzx ebp, byte [edi]
mov ecx, ebp
mov dword [esp + 0x3c], ebp
inc edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x28], 8
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x90]
cmp ebp, ebx
jne 0x410473
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x24]
cmp ebx, 0
jne 0x4101e1
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
call fcn.00447f40
mov ebx, dword [esp + 4]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x80], ebx
call fcn.00429e30
mov ebx, 0x5f3653
mov dword [esp], ebx
mov dword [esp + 4], 0x16
call fcn.0042a840
call fcn.0042a040
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
call fcn.0042a840
call fcn.0042a080
call fcn.00429eb0
mov ebx, 0x5f975f
mov dword [esp], ebx
mov dword [esp + 4], 0x2d
call fcn.00429650
add esp, 0x84
ret
mov ebx, dword [esp + 0x24]
cmp ebx, 2
jae 0x4101f2
mov dword [esp + 0x24], 2
mov ebx, dword [esp + 0x70]
cmp ebx, 0
jne 0x410449
mov ebx, ecx
and ebx, 0xf
or ebx, 0xd0
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x1c]
add edx, 4
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jb 0x410307
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jbe 0x41025a
mov ecx, edx
sub ecx, dword [esp + 0x24]
mov ebp, 4
sub ebp, ecx
mov ecx, ebp
mov ebx, 1
cmp ebp, 0x20
jae 0x410300
shl ebx, cl
dec ebx
mov ebp, dword [esp + 0x30]
mov eax, ebx
shl ebx, 4
or ebx, eax
and ebx, ebp
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x8c]
shr ecx, 2
cmp edx, ecx
ja 0x4102a2
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
mov byte [ebx], al
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], 0
add edx, 4
cmp edx, ecx
ja 0x4102a2
xor eax, eax
mov ebx, dword [esp + 0x5c]
mov byte [ebx], al
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
add edx, 4
cmp edx, ecx
jbe 0x41028a
mov eax, ecx
add eax, 2
cmp eax, edx
jne 0x4102d2
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x4102d9
mov ebx, dword [esp + 0x5c]
movzx esi, byte [ebx]
mov ebx, esi
and ebx, 0xcc
mov ebp, dword [esp + 0x30]
or ebx, ebp
mov ebp, dword [esp + 0x5c]
mov byte [ebp], bl
add esp, 0x84
ret
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov byte [esp + 4], 0xcc
call fcn.004d4c40
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov byte [esp + 4], bl
call fcn.004d4c30
jmp 0x4102d2
xor ebx, ebx
jmp 0x410246
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
mov byte [ebx], al
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
shr ecx, 4
mov eax, dword [esp + 0x28]
sub eax, 4
sub eax, 4
mov ebx, ecx
and ebx, 0xf
or ebx, 0xf0
mov dword [esp + 0x30], ebx
add edx, 4
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jae 0x410221
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
shr ecx, 4
mov ebp, dword [esp + 0x60]
cmp edi, ebp
je 0x4103c7
cmp eax, 8
jae 0x4103c2
mov dword [esp + 0x44], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x4103be
shl ebx, cl
or ebx, dword [esp + 0x44]
mov ecx, ebx
inc edi
mov ebx, ecx
and ebx, 0xf
or ebx, 0xf0
mov dword [esp + 0x30], ebx
add edx, 4
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jae 0x410221
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
shr ecx, 4
jmp 0x410327
xor ebx, ebx
jmp 0x41037a
sub eax, 8
jmp 0x410383
xor ebp, ebp
cmp edi, ebp
jne 0x4103f2
cmp eax, 8
jae 0x4103e9
mov ebp, ecx
mov ebx, dword [esp + 0x20]
mov ecx, eax
cmp eax, 0x20
jae 0x4103ee
shl ebx, cl
or ebx, ebp
mov ecx, ebx
add eax, dword [esp + 0x38]
sub eax, 8
jmp 0x410383
xor ebx, ebx
jmp 0x4103df
mov dword [esp + 0x4c], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x410445
shl ebx, cl
or ebx, dword [esp + 0x4c]
mov ecx, ebx
add eax, dword [esp + 0x38]
cmp eax, 8
jae 0x410439
mov edi, ecx
mov ebx, dword [esp + 0x50]
movzx esi, byte [ebx]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x410435
shl ebx, cl
or ebx, edi
mov ecx, ebx
mov edi, dword [esp + 0x50]
inc edi
jmp 0x410383
xor ebx, ebx
jmp 0x410425
sub eax, 8
mov edi, dword [esp + 0x50]
jmp 0x410383
xor ebx, ebx
jmp 0x410402
mov ebx, 0x5f6e24
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00429650
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
jmp 0x410324
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
mov esi, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x90]
xor edx, edx
div ebx
mov ebx, eax
mov edx, dword [esp + 0x40]
mov eax, esi
dec ebx
mov esi, ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov dword [esp + 0x4c], ebp
mov ebx, dword [esp + 0x4c]
imul esi, ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x4c], ebp
mov ebx, dword [esp + 0x4c]
mov ebp, esi
add ebp, ebx
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x90]
xor edx, edx
div ebx
mov ebp, eax
mov eax, dword [esp + 0x40]
dec ebp
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
imul ebp, ebx
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
add ebp, ebx
mov ebx, ebp
shr ebx, 2
mov dword [esp + 0x24], ebx
jmp 0x41015a
xor ebx, ebx
jmp 0x4100e4
xor ebx, ebx
jmp 0x41008f
xor ebx, ebx
jmp 0x410017
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
add ebx, 7
mov ebx, dword [esp + 0x94]
mov esi, dword [ebx + 4]
shr esi, 2
add esi, 7
shr esi, 3
dec esi
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x4c]
add ebx, esi
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov dword [esp + 0x44], ebp
mov ebx, dword [esp + 0x44]
shr ebx, 2
mov dword [esp + 0x44], ebx
mov ebx, esi
shl ebx, 3
mov ebp, dword [esp + 0x44]
sub ebp, ebx
mov dword [esp + 0x38], ebp
jmp 0x410107
call fcn.0044ff60
jmp fcn.0040fca0