Function at 0x40ff00
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 0x4107f9
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 0x41014c
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
cmp ebp, 4
jne 0x41009d
mov ebx, dword [esp + 0x90]
cmp ebx, 4
jne 0x410045
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x40fff8
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40fff4
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 0x40fff0
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x40ffe3
xor ebx, ebx
jmp 0x40ffc5
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x410041
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.004d4ea0
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, 0x11
cmp ecx, 8
jae 0x41003d
shl ebx, cl
mov byte [esp + 4], bl
call fcn.004d4e90
jmp 0x40ffe9
xor ebx, ebx
jmp 0x410030
xor ebx, ebx
jmp 0x41000d
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x410074
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x410070
shl ebx, cl
or ebx, edx
mov byte [eax], bl
jmp 0x40ffe9
xor ebx, ebx
jmp 0x410065
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x410099
shl ebx, cl
mov byte [esp + 4], bl
call fcn.004d4e90
jmp 0x40ffe9
xor ebx, ebx
jmp 0x410089
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 0x410100
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x4100fc
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 0x4100f8
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x4100eb
xor ebx, ebx
jmp 0x4100d0
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x410148
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.004d4ea0
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x34]
cmp ecx, 0x20
jae 0x410144
shl ebx, cl
mov byte [esp + 4], bl
call fcn.004d4e90
jmp 0x4100f1
xor ebx, ebx
jmp 0x410137
xor ebx, ebx
jmp 0x410115
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 0x4101f6
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.00410810
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 0x410367
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 0x41077c
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 0x410297
mov dword [esp + 0x48], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x20
jae 0x410775
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 0x410261
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 0x41035d
mov ebx, dword [esp + 0x38]
cmp ebx, 0x20
ja 0x41030c
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
cmp ecx, 0x20
jae 0x41076e
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 0x4102da
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 0x410767
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 0x410387
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 0x4106d3
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 0x410441
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
call fcn.004481a0
mov ebx, dword [esp + 4]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x80], ebx
call fcn.0042a090
mov ebx, 0x5f390e
mov dword [esp], ebx
mov dword [esp + 4], 0x16
call fcn.0042aaa0
call fcn.0042a2a0
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
call fcn.0042aaa0
call fcn.0042a2e0
call fcn.0042a110
mov ebx, 0x5f9a1a
mov dword [esp], ebx
mov dword [esp + 4], 0x2d
call fcn.004298b0
add esp, 0x84
ret
mov ebx, dword [esp + 0x24]
cmp ebx, 2
jae 0x410452
mov dword [esp + 0x24], 2
mov ebx, dword [esp + 0x70]
cmp ebx, 0
jne 0x4106a9
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 0x410567
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jbe 0x4104ba
mov ecx, edx
sub ecx, dword [esp + 0x24]
mov ebp, 4
sub ebp, ecx
mov ecx, ebp
mov ebx, 1
cmp ebp, 0x20
jae 0x410560
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 0x410502
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 0x410502
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 0x4104ea
mov eax, ecx
add eax, 2
cmp eax, edx
jne 0x410532
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x410539
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.004d4ea0
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov byte [esp + 4], bl
call fcn.004d4e90
jmp 0x410532
xor ebx, ebx
jmp 0x4104a6
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 0x410481
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 0x410627
cmp eax, 8
jae 0x410622
mov dword [esp + 0x44], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x41061e
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 0x410481
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 0x410587
xor ebx, ebx
jmp 0x4105da
sub eax, 8
jmp 0x4105e3
xor ebp, ebp
cmp edi, ebp
jne 0x410652
cmp eax, 8
jae 0x410649
mov ebp, ecx
mov ebx, dword [esp + 0x20]
mov ecx, eax
cmp eax, 0x20
jae 0x41064e
shl ebx, cl
or ebx, ebp
mov ecx, ebx
add eax, dword [esp + 0x38]
sub eax, 8
jmp 0x4105e3
xor ebx, ebx
jmp 0x41063f
mov dword [esp + 0x4c], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x4106a5
shl ebx, cl
or ebx, dword [esp + 0x4c]
mov ecx, ebx
add eax, dword [esp + 0x38]
cmp eax, 8
jae 0x410699
mov edi, ecx
mov ebx, dword [esp + 0x50]
movzx esi, byte [ebx]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x410695
shl ebx, cl
or ebx, edi
mov ecx, ebx
mov edi, dword [esp + 0x50]
inc edi
jmp 0x4105e3
xor ebx, ebx
jmp 0x410685
sub eax, 8
mov edi, dword [esp + 0x50]
jmp 0x4105e3
xor ebx, ebx
jmp 0x410662
mov ebx, 0x5f70df
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.004298b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
jmp 0x410584
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 0x4103ba
xor ebx, ebx
jmp 0x410344
xor ebx, ebx
jmp 0x4102ef
xor ebx, ebx
jmp 0x410277
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 0x410367
call fcn.004501c0
jmp fcn.0040ff00