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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x304
push ebx
push esi
mov esi, dword [0x5d672c]
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esp + 0x14], 0
movss xmm0, dword [esi + 0x3788]
lea ecx, [esi + 0x4764]
movss dword [esp + 0x18], xmm0
call fcn.00440c00
push 0x14
mov dword [esi + 0x3788], 0x3f4ccccd
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x5d672c]
mov ecx, 0x5d6804
push 0x80e2
mov dword [eax + 0x20], 0
cmp dword [0x5d6818], 0xf
cmova ecx, dword [0x5d6804]
xor edx, edx
call fcn.00433760
add esp, 4
mov ecx, 0x47665c
call fcn.0041cf00
test al, al
je 0x411d34
mov ecx, dword [0x5d672c]
xor edx, edx
push str.Background
mov eax, dword [ecx + 0x3e48]
movss xmm0, dword [eax + 0x14]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [eax + 0x18]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
mov ecx, dword [ecx + 0x47c4]
movss dword [esp + 0x34], xmm0
mov esi, dword [eax + 0x264]
mov ecx, dword [ecx]
call fcn.0042de50
mov eax, dword [0x5d672c]
add esp, 4
mov edx, 1
mov ecx, dword [eax + 0x47c4]
push str.Foreground
mov ecx, dword [ecx]
call fcn.0042de50
movss xmm2, dword [esp + 0x30]
lea eax, [esp + 0x34]
movss xmm1, dword [esp + 0x34]
movaps xmm0, xmm2
xorps xmm3, xmm3
add esp, 4
addss xmm0, xmm3
mov ecx, esi
push 0xff000000
push 0xff221114
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm1
addss xmm0, xmm3
push 0xff882044
push 0xff000000
push eax
lea eax, [esp + 0x24]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [0x54d47c]
addss xmm2, xmm0
addss xmm1, xmm0
push eax
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x4c], xmm1
call fcn.0044ca90
call fcn.00404f70
push 0
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x43eb0000
push eax
mov edx, 1
mov dword [esp + 0x20], 0x43c80000
xor ecx, ecx
call fcn.00430b20
add esp, 0xc
test al, al
je 0x411200
mov ecx, dword [0x5d672c]
lea edx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x42960000
mov dword [esp + 0x18], 0x420c0000
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
mov ecx, 0x476684
movss xmm0, dword [eax + 0x14]
subss xmm0, dword [eax + 0x78]
mov byte [eax + 0x131], 1
addss xmm0, dword [0x54d42c]
movss dword [eax + 0xf0], xmm0
call fcn.00457b00
add esp, 4
test al, al
je 0x411130
mov dword [0x5540a0], 1
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x42960000
mov ecx, 0x476688
mov dword [esp + 0x18], 0x420c0000
call fcn.00457b00
add esp, 4
test al, al
je 0x411170
mov dword [0x5540a0], 2
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x42960000
mov ecx, 0x47668c
mov dword [esp + 0x18], 0x420c0000
call fcn.00457b00
add esp, 4
test al, al
je 0x4111c0
mov dword [0x5540a0], 4
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x42960000
mov ecx, 0x476690
mov dword [esp + 0x18], 0x420c0000
call fcn.00457b00
add esp, 4
test al, al
je 0x411200
mov dword [0x5540a0], 5
call fcn.00430db0
push 0
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x43eb0000
push eax
mov edx, 1
mov dword [esp + 0x20], 0x43c80000
xor ecx, ecx
call fcn.00430b20
add esp, 0xc
test al, al
je 0x4119c0
mov ecx, dword [0x5d672c]
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
movss xmm0, dword [ecx + 0x37f4]
addss xmm0, dword [eax + 0x134]
movss dword [eax + 0x134], xmm0
addss xmm0, dword [eax + 0x14]
addss xmm0, dword [eax + 0x138]
movss dword [eax + 0xf0], xmm0
mov eax, dword [0x5540a0]
cmp eax, 1
jne 0x41128e
call fcn.00419fd0
jmp 0x4119c0
cmp eax, 2
jne 0x411719
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x4112e4
mov ecx, 0x476694
mov esi, ecx
cmp esi, 0xffffffff
jae 0x4112d6
nop
mov dl, byte [ecx]
test dl, dl
je 0x4112d6
cmp dl, 0x23
jne 0x4112d0
cmp byte [ecx + 1], dl
je 0x4112d6
inc ecx
cmp ecx, 0xffffffff
jb 0x4112c0
push ecx
xorps xmm3, xmm3
mov edx, esi
call fcn.00459910
add esp, 4
push 0x5d54c0
push str.Bot_Script
call fcn.0046ba10
cmp byte [0x5d54c0], 0
je 0x41131b
push ecx
push 0x3f
push 0x5d5268
push 0x45a6d0
mov edx, 0x5d68b4
mov ecx, 0x4766a4
call fcn.0045a750
add esp, 0x10
push ecx
push 0x4766a8
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x50
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0xa
push eax
push 0x5d525c
mov ecx, str.Delay
call fcn.0045b980
mov ecx, dword [0x5d672c]
add esp, 0x14
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x4113a4
mov ecx, 0x473d2b
mov esi, ecx
cmp esi, 0xffffffff
jae 0x411396
nop dword [eax + eax]
mov dl, byte [ecx]
test dl, dl
je 0x411396
cmp dl, 0x23
jne 0x411390
cmp byte [ecx + 1], dl
je 0x411396
inc ecx
cmp ecx, 0xffffffff
jb 0x411380
push ecx
xorps xmm3, xmm3
mov edx, esi
call fcn.00459910
add esp, 4
movss xmm3, dword [0x54d350]
lea eax, [esp + 0x30]
push ecx
push 0x4766b4
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0xc
push eax
push 0x5d6634
mov edx, 4
mov dword [esp + 0x40], 0
mov ecx, str.Hours
call fcn.0045ad00
movss xmm3, dword [0x54d350]
lea eax, [esp + 0x44]
add esp, 0x10
mov dword [esp + 0x34], 0x37
mov edx, 4
mov dword [esp + 0x30], 0
mov ecx, str.Minutes
push 0x4766c0
push eax
lea eax, [esp + 0x38]
push eax
push 0x5d6630
call fcn.0045ad00
mov eax, dword [0x5d6634]
add esp, 0x14
test eax, eax
jns 0x41142e
xor eax, eax
jmp 0x411438
mov ecx, 0xc
cmp eax, ecx
cmovg eax, ecx
mov dword [0x5d6634], eax
mov eax, dword [0x5d6630]
test eax, eax
jns 0x41144a
xor eax, eax
jmp 0x411454
mov ecx, 0x37
cmp eax, ecx
cmovg eax, ecx
push ecx
lea edx, [esp + 0x14]
mov dword [0x5d6630], eax
mov ecx, str.Run_Time
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00457b00
add esp, 4
test al, al
je 0x4114c4
mov ecx, dword [0x5d6634]
mov eax, dword [0x5d6630]
shl ecx, 4
sub ecx, dword [0x5d6634]
lea eax, [eax + ecx*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
shl ecx, 2
test ecx, ecx
jle 0x4114c4
lea ecx, [esp + 0x10]
mov byte [0x5d6528], 1
call fcn.004026a0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x5d6688], ecx
mov dword [0x5d668c], eax
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
cmp byte [0x5d6528], 0
je 0x4115e4
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov ecx, str.Cancel_Time
mov dword [esp + 0x18], 0
call fcn.00457b00
add esp, 4
test al, al
je 0x411513
mov byte [0x5d6528], 0
jmp 0x4115e4
cmp byte [0x5d6528], 0
je 0x4115e4
lea ecx, [esp + 0x10]
call fcn.004026a0
mov ecx, dword [0x5d6634]
mov eax, dword [0x5d6630]
shl ecx, 4
sub ecx, dword [0x5d6634]
push 0
push 0x3b9aca00
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov edi, eax
shl edi, 4
sub edi, eax
mov eax, dword [esp + 0x1c]
shl edi, 2
sub ecx, dword [0x5d6688]
sbb eax, dword [0x5d668c]
push eax
push ecx
call fcn.00470120
sub edi, eax
test edi, edi
jg 0x411585
mov ecx, 0x4766e4
mov byte [0x5d6528], 0
call fcn.00409390
jmp 0x4115e4
mov eax, 0x91a2b3c5
imul edi
mov eax, 0x88888889
add edx, edi
sar edx, 0xb
mov esi, edx
shr esi, 0x1f
add esi, edx
imul edi
mov eax, 0x88888889
add edx, edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
shl edx, 4
sub edx, ecx
mov ecx, edi
shl edx, 2
sub ecx, edx
push ecx
imul ecx, esi, 0xe10
sub edi, ecx
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
push str.Remaining_Time_To_Close:__02d:_02d:_02d
call fcn.004570b0
add esp, 0x10
call fcn.00436470
mov ecx, dword [0x5d672c]
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x41163b
mov ecx, 0x473d33
mov esi, ecx
cmp esi, 0xffffffff
jae 0x41162d
mov dl, byte [ecx]
test dl, dl
je 0x41162d
cmp dl, 0x23
jne 0x411627
cmp byte [ecx + 1], dl
je 0x41162d
inc ecx
cmp ecx, 0xffffffff
jb 0x411617
push ecx
xorps xmm3, xmm3
mov edx, esi
call fcn.00459910
add esp, 4
push 0x5d68c9
push 0x476734
call fcn.0046ba10
cmp byte [0x5d68c9], 0
je 0x41165a
mov byte [0x5d68c0], 0
push 0x5d68c0
push 0x476740
call fcn.0046ba10
cmp byte [0x5d68c0], 0
je 0x411679
mov byte [0x5d68c9], 0
mov esi, dword [0x5d672c]
mov edx, dword [esi + 0x46a0]
dec dword [esi + 0x4788]
dec word [esi + 0x5a04]
mov ecx, dword [esi + 0x4788]
mov eax, dword [esi + 0x4790]
shr edx, 2
mov eax, dword [eax + ecx*4 - 4]
mov dword [esi + 0x46a0], eax
test dl, 1
je 0x4116c0
test al, 4
jne 0x4116c0
mov eax, dword [esi + 0x5a00]
mov dword [esi + 0x3788], eax
mov eax, dword [esi + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [esi + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x4119c0
mov ecx, 0x473d3a
mov esi, ecx
cmp esi, 0xffffffff
jae 0x411706
nop dword [eax]
mov dl, byte [ecx]
test dl, dl
je 0x411706
cmp dl, 0x23
jne 0x411700
cmp byte [ecx + 1], dl
je 0x411706
inc ecx
cmp ecx, 0xffffffff
jb 0x4116f0
push ecx
xorps xmm3, xmm3
mov edx, esi
call fcn.00459910
add esp, 4
jmp 0x4119c0
cmp eax, 4
jne 0x4119b6
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x411774
mov ecx, 0x476748
mov esi, ecx
cmp esi, 0xffffffff
jae 0x411766
nop word [eax + eax]
mov dl, byte [ecx]
test dl, dl
je 0x411766
cmp dl, 0x23
jne 0x411760
cmp byte [ecx + 1], dl
je 0x411766
inc ecx
cmp ecx, 0xffffffff
jb 0x411750
push ecx
xorps xmm3, xmm3
mov edx, esi
call fcn.00459910
add esp, 4
call dword [sym.imp.WINMM.dll_joyGetNumDevs]
mov edi, eax
xor esi, esi
test edi, edi
je 0x411853
mov ebx, 0x473d3b
nop dword [eax + eax]
push 0x2d8
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.WINMM.dll_joyGetDevCapsW]
test eax, eax
jne 0x41184a
push esi
push 0x476754
call fcn.004570b0
lea eax, [esp + 0x44]
push eax
push 0x476764
call fcn.004570b0
lea eax, [esp + 0x118]
push eax
push 0x476770
call fcn.004570b0
push dword [esp + 0xac]
push 0x476784
call fcn.004570b0
push dword [esp + 0xe0]
push 0x47679c
call fcn.004570b0
mov ecx, dword [0x5d672c]
add esp, 0x28
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x41184a
mov ecx, 0x473d3b
cmp ebx, 0xffffffff
jae 0x41183c
mov dl, byte [ecx]
test dl, dl
je 0x41183c
cmp dl, 0x23
jne 0x411836
cmp byte [ecx + 1], dl
je 0x41183c
inc ecx
cmp ecx, 0xffffffff
jb 0x411826
push ecx
xorps xmm3, xmm3
mov edx, ebx
call fcn.00459910
add esp, 4
inc esi
cmp esi, edi
jb 0x411790
xor esi, esi
mov edi, 0x473d43
nop word [eax + eax]
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push esi
movaps xmmword [esp + 0x18], xmm0
call dword [sym.imp.XINPUT1_3.dll_Ordinal_2]
test eax, eax
jne 0x4118e4
push esi
push 0x4767b0
call fcn.004570b0
push 0x4767bc
call fcn.004570b0
mov ecx, dword [0x5d672c]
add esp, 0xc
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x4118e4
mov ecx, 0x473d43
cmp edi, 0xffffffff
jae 0x4118d6
nop dword [eax]
mov dl, byte [ecx]
test dl, dl
je 0x4118d6
cmp dl, 0x23
jne 0x4118d0
cmp byte [ecx + 1], dl
je 0x4118d6
inc ecx
cmp ecx, 0xffffffff
jb 0x4118c0
push ecx
xorps xmm3, xmm3
mov edx, edi
call fcn.00459910
add esp, 4
inc esi
cmp esi, 4
jb 0x411860
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x42be0000
mov ecx, 0x5d586c
mov dword [esp + 0x14], 0x41e00000
call fcn.00407670
call fcn.00436470
push 0x5d68b9
push 0x4767d0
call fcn.0046ba10
mov esi, dword [0x5d672c]
mov edx, dword [esi + 0x46a0]
dec dword [esi + 0x4788]
dec word [esi + 0x5a04]
mov ecx, dword [esi + 0x4788]
mov eax, dword [esi + 0x4790]
shr edx, 2
mov eax, dword [eax + ecx*4 - 4]
mov dword [esi + 0x46a0], eax
test dl, 1
je 0x411967
test al, 4
jne 0x411967
mov eax, dword [esi + 0x5a00]
mov dword [esi + 0x3788], eax
mov eax, dword [esi + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [esi + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x4119c0
mov ecx, 0x473d4b
mov esi, ecx
cmp esi, 0xffffffff
jae 0x4119a6
nop
mov dl, byte [ecx]
test dl, dl
je 0x4119a6
cmp dl, 0x23
jne 0x4119a0
cmp byte [ecx + 1], dl
je 0x4119a6
inc ecx
cmp ecx, 0xffffffff
jb 0x411990
push ecx
xorps xmm3, xmm3
mov edx, esi
call fcn.00459910
add esp, 4
jmp 0x4119c0
cmp eax, 5
jne 0x4119c0
call fcn.00418620
call fcn.00430db0
push 0
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x43eb0000
push eax
mov edx, 3
mov dword [esp + 0x20], 0x42a00000
xor ecx, ecx
call fcn.00430b20
add esp, 0xc
test al, al
je 0x411d23
mov esi, dword [0x5d672c]
movss xmm3, dword [0x54d4a0]
push 0
push 0
mov eax, dword [esi + 0x3e48]
push 0x4767dc
push ecx
mov dword [esp], 0xbf800000
movss xmm0, dword [eax + 0xf4]
movss xmm1, dword [eax + 0x22c]
movaps xmm2, xmm0
subss xmm2, dword [eax + 0x18]
subss xmm1, xmm0
addss xmm2, dword [eax + 0x7c]
subss xmm1, dword [0x54d424]
mov byte [eax + 0xac], 1
mov eax, dword [esi + 0x3e48]
mulss xmm1, dword [0x54d310]
mov byte [eax + 0x131], 1
movss xmm0, dword [eax + 0x18]
subss xmm0, dword [eax + 0x7c]
addss xmm2, xmm1
addss xmm0, xmm2
movss dword [eax + 0xf4], xmm0
lea eax, [esp + 0x20]
movss xmm0, dword [esi + 0xa0]
movss xmm2, dword [esi + 0x3bb8]
mov ecx, dword [esi + 0x3bb4]
push eax
movss dword [esp + 0x44], xmm0
call fcn.00450890
mov eax, dword [esi + 0x3e48]
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x54d348]
push 0x47681c
movss xmm1, dword [eax + 0x1c]
mov byte [eax + 0xac], 1
mov ecx, dword [esi + 0x3e48]
cvttss2si eax, xmm0
mov byte [ecx + 0x131], 1
movd xmm0, eax
lea eax, [esp + 0x14]
cvtdq2ps xmm0, xmm0
push eax
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x14]
subss xmm0, dword [ecx + 0x78]
mulss xmm1, dword [0x54d310]
addss xmm1, xmm0
movaps xmm0, xmmword [0x54d650]
movups xmmword [esp + 0x18], xmm0
movss dword [ecx + 0xf0], xmm1
call fcn.00457170
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
push 0x476828
call fcn.004570b0
movss xmm1, dword [0x54d4c8]
add esp, 0xc
xorps xmm0, xmm0
call fcn.00438f30
movaps xmm0, xmmword [0x54d650]
lea eax, [esp + 0x10]
movups xmmword [esp + 0x10], xmm0
sub esp, 8
movss xmm0, dword [0x54d418]
divss xmm0, dword [esp + 0x38]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x47682c
push eax
call fcn.00457170
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
push 0x476834
call fcn.004570b0
movss xmm1, dword [0x54d4c8]
add esp, 0x14
xorps xmm0, xmm0
call fcn.00438f30
movaps xmm0, xmmword [0x54d650]
lea eax, [esp + 0x10]
sub esp, 8
movups xmmword [esp + 0x18], xmm0
movsd xmm0, qword [0x54d3b0]
movsd qword [esp], xmm0
push 0x476838
push eax
call fcn.00457170
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
push 0x476840
call fcn.004570b0
movss xmm1, dword [0x54d4c8]
add esp, 0x14
xorps xmm0, xmm0
call fcn.00438f30
push 0x476844
call fcn.004570b0
movss xmm1, dword [0x54d4c8]
add esp, 4
xorps xmm0, xmm0
call fcn.00438f30
movaps xmm0, xmmword [0x54d650]
lea eax, [esp + 0x10]
push 0x47684c
push eax
movups xmmword [esp + 0x18], xmm0
call fcn.00457170
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
push 0x476858
call fcn.004570b0
movss xmm1, dword [0x54d4c8]
add esp, 0xc
xorps xmm0, xmm0
call fcn.00438f30
push 0x47685c
call fcn.004570b0
movss xmm1, dword [0x54d4c8]
add esp, 4
xorps xmm0, xmm0
call fcn.00438f30
push 0x476860
call fcn.004570b0
movss xmm1, dword [0x54d4c8]
add esp, 4
xorps xmm0, xmm0
call fcn.00438f30
push 0x476868
call fcn.004570b0
mov ecx, dword [0x5d672c]
add esp, 4
mov eax, dword [ecx + 0x3e48]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e48]
cmp byte [eax + 0xaf], 0
jne 0x411ce8
movss xmm1, dword [0x54d4c8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.00438ba0
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x42200000
mov ecx, 0x47686c
mov dword [esp + 0x18], 0x41f00000
call fcn.00457b00
add esp, 4
test al, al
jne 0x411d34
movss xmm1, dword [0x54d4c8]
xorps xmm0, xmm0
call fcn.00438f30
call fcn.004083c0
call fcn.00430db0
call fcn.00435c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00409360
int3