Function at 0x459d38
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x35
push 0
push 0
dec ecx
jne 0x459d41
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x18]
push ecx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov edx, dword [0x443370]
call fcn.00405954
xor eax, eax
push ebp
push 0x45aafa
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00447078
test al, al
je 0x459db8
cmp byte [0x5136c0], 0
je 0x459db8
cmp dword [0x5136b8], 0
jne 0x459db8
mov eax, dword [0x51152c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x459db8
mov byte [ebp - 0x8d], 1
jmp 0x45aa86
mov byte [ebp - 0x8d], 0
call fcn.0040cdbc
fstp qword [0x51376c]
wait
mov eax, dword [ebp - 0x20]
mov dword [0x50ebc4], eax
mov eax, 0x513730
call fcn.00404bac
mov dword [0x513774], 1
xor eax, eax
push ebp
push 0x45aa61
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407288
mov byte [eax + 0xe9], 1
mov ecx, dword [0x513634]
mov dl, 1
mov eax, dword [0x4432a8]
call fcn.0045c44c
mov dword [ebp - 0x60], eax
xor eax, eax
push ebp
push 0x45aa50
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x459e32
mov eax, dword [ebp - 0x1c]
mov dword [0x5136e8], eax
test bl, bl
je 0x459e45
cmp dword [ebp - 0x1c], 0
je 0x459e45
mov eax, dword [ebp - 0x1c]
sub eax, 5
mov dword [ebp - 0x1c], eax
call fcn.00459b9c
cmp esi, dword [0x512668]
je 0x459e5a
mov ebx, dword [0x512668]
jmp 0x459e62
mov ebx, dword [0x510fcc]
mov ebx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x1c], 0
je 0x459e88
mov dword [0x513774], 0x65
mov eax, dword [ebp - 0x1c]
call fcn.00446220
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x459e9d
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x459ee4
mov dword [0x513774], 0x66
mov eax, esi
call fcn.0044615c
mov dword [ebp - 0x9c], eax
mov dword [0x513774], 0x67
cmp dword [ebp - 0x9c], 0
je 0x459ed7
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x459ee4
test ebx, ebx
je 0x459ee4
mov eax, ebx
call fcn.0044615c
mov dword [ebp - 0x9c], eax
mov eax, dword [0x513644]
test byte [eax + 0x205], 0x10
je 0x459f30
test ebx, ebx
je 0x459f30
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov eax, ebx
call fcn.0044615c
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x459f24
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x459f30
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov dword [0x513774], 0x68
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax + 0x23]
mov eax, dword [0x513644]
mov ecx, dword [eax]
call dword [ecx + 0xc]
call fcn.0042fd90
test al, al
je 0x459f73
mov eax, dword [0x513644]
mov dl, byte [0x45ab10]
not edx
and dl, byte [eax + 0x1e8]
mov eax, dword [0x513644]
call fcn.00431f10
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax + 4]
mov eax, dword [0x513644]
call fcn.00431c8c
mov eax, dword [0x513644]
cmp byte [eax + 0x1e0], 0
jne 0x459fa6
mov eax, dword [0x513644]
cmp byte [eax + 0x1e1], 0
jne 0x459fa6
xor eax, eax
jmp 0x459fa8
mov al, 1
mov byte [0x513710], al
mov eax, dword [0x513644]
test byte [eax + 0x1c2], 0x10
setne al
mov byte [0x513711], al
mov dword [0x513774], 2
xor ebx, ebx
cmp byte [ebp + 8], 2
je 0x45a07c
mov eax, dword [0x513644]
cmp byte [eax + 0x1bd], 0
je 0x45a07c
push ebp
call fcn.004571d4
pop ecx
mov dword [ebp - 0x94], eax
mov dword [0x513774], 0xc9
cmp dword [ebp - 0x94], 0xffffffff
je 0x45a07c
lea ecx, [ebp - 0x178]
mov eax, dword [0x513644]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x94]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x178], 0
je 0x45a07a
push 0x242040
lea ecx, [ebp - 0x17c]
xor edx, edx
mov eax, dword [0x513644]
call fcn.0043097c
mov eax, dword [ebp - 0x17c]
call fcn.00405088
push eax
lea ecx, [ebp - 0x180]
mov eax, dword [0x513644]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x94]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x180]
call fcn.00405088
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov bl, 1
mov dword [0x513774], 3
test bl, bl
jne 0x45aa0b
cmp dword [ebp - 0x14], 0
jne 0x45a09c
call fcn.004449bc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x45a0b0
call fcn.00407288
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
jne 0x45a0d2
call fcn.00407288
cmp dword [eax + 0x1c], 0
je 0x45a0d2
call fcn.00407288
lea eax, [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov edx, 0xcc
mov eax, dword [ebp - 0x18]
call fcn.0042f630
test al, al
jne 0x45a0e8
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5136ec], eax
mov dword [0x513774], 4
mov edx, dword [ebp - 0x1c]
add edx, 5
mov eax, dword [0x51371c]
call fcn.0044a0e4
test al, al
jne 0x45a39d
cmp dword [0x50ebb4], 0
je 0x45a125
mov eax, dword [0x50ebb4]
call fcn.00403c2c
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0044b5d0
mov dword [0x50ebb4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x60]
call fcn.0045c69c
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xffffffff
je 0x45a16b
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
call fcn.00459c3c
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45a217
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45a205
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
call fcn.00459ca0
test al, al
je 0x45a205
mov eax, dword [0x513634]
call fcn.0045c700
xor eax, eax
push ebp
push 0x45a1fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a205
mov eax, dword [0x513634]
call fcn.0045c70c
ret
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45a18b
xor eax, eax
push ebp
push 0x45a396
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45a31b
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45a309
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
call fcn.00459ca0
test al, al
je 0x45a309
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x174]
xor ecx, ecx
mov edx, 0xcc
call fcn.004034bc
mov dword [ebp - 0x174], 0x10007
lea eax, [ebp - 0x174]
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x45a309
cmp dword [ebp - 0xbc], 0
je 0x45a309
cmp dword [ebp - 0xb0], 0
je 0x45a309
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
push eax
push 1
push 1
mov ecx, dword [ebp - 0xb0]
xor edx, edx
mov eax, dword [0x50ebb4]
call fcn.0044b2e8
mov eax, dword [ebp - 0x98]
call fcn.00459c3c
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45a245
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a39d
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45a395
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45a387
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
call fcn.00459ca0
test al, al
je 0x45a387
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax + 4]
push eax
call fcn.00407874
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45a344
ret
mov dword [0x513774], 5
cmp byte [ebp + 8], 2
je 0x45aa0b
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45a476
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x45a464
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45a464
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
call fcn.00459ce0
test al, al
je 0x45a464
mov eax, dword [0x513634]
call fcn.0045c700
xor eax, eax
push ebp
push 0x45a45d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a464
mov eax, dword [0x513634]
call fcn.0045c70c
ret
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45a3d1
xor eax, eax
push ebp
push 0x45a9e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x513774], 6
mov byte [0x51377e], 1
mov eax, dword [0x513644]
test byte [eax + 0x1c1], 0x10
je 0x45a4a8
call fcn.00446b78
mov dword [0x513774], 7
mov eax, dword [0x50ebb4]
mov dword [0x513794], eax
mov eax, dword [0x513644]
mov dword [0x513798], eax
mov dword [0x513774], 0x2bd
mov eax, dword [ebp - 0x1c]
mov dword [0x513784], eax
mov eax, dword [ebp - 0x20]
mov dword [0x513780], eax
mov eax, dword [ebp - 0xc]
mov dword [0x513788], eax
mov dword [0x513774], 0x2be
push ebp
call fcn.004581ec
pop ecx
mov eax, 0x51378c
mov edx, dword [0x513704]
call fcn.00404c00
mov dword [0x513774], 0x2bf
mov eax, dword [0x50ebb0]
mov dword [0x513790], eax
mov dword [0x513774], 0x2c0
mov dword [0x513700], 0x513780
call fcn.004490fc
mov dword [0x513774], 0x2c1
call fcn.00445bf8
mov dword [0x513774], 0x2c2
call fcn.00451e58
call fcn.00446e3c
test al, al
je 0x45a589
lea eax, [ebp - 0x188]
call fcn.0044953c
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.00449838
mov edx, dword [ebp - 0x184]
mov eax, 0x5136a8
call fcn.00404c00
mov eax, 0x513a2c
mov edx, dword [0x5136a8]
call fcn.00404c00
call fcn.004499d4
test al, al
je 0x45a5ac
mov eax, 0x449be0
call fcn.0044a048
mov dword [0x513774], 8
cmp byte [0x51377e], 0
je 0x45a949
mov eax, dword [0x513644]
test byte [eax + 0x205], 1
je 0x45a61c
call fcn.0040cdbc
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x18c]
call fcn.0040daf8
mov edx, dword [ebp - 0x18c]
mov eax, dword [0x513768]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x513768]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [0x513644]
cmp eax, dword [edx + 0x1fc]
jle 0x45a61c
xor edx, edx
mov eax, dword [0x513768]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, 0x5137a8
call fcn.00404bac
call fcn.00449af0
test al, al
je 0x45a661
mov eax, 0x449e30
call fcn.0044a048
lea ecx, [ebp - 0x190]
mov dl, 0xd
mov eax, dword [0x513644]
call fcn.0043097c
mov edx, dword [ebp - 0x190]
mov ecx, dword [0x5137a8]
mov eax, 6
call fcn.0044bf04
mov dword [0x513774], 9
inc dword [0x513650]
mov dword [0x513774], 0xa
push ebp
lea eax, [ebp - 0x198]
call fcn.00455ee8
pop ecx
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.0045556c
mov edx, dword [ebp - 0x194]
mov eax, 0x5136f8
call fcn.00404c00
mov dword [0x513774], 0xb
mov eax, dword [0x513644]
test byte [eax + 0x1e8], 1
je 0x45a7fc
mov dword [0x513774], 0xc
mov byte [0x51377d], 1
call fcn.00445bf8
call fcn.00449a18
test al, al
je 0x45a6ee
mov eax, 0x45725c
call fcn.0044a048
cmp byte [0x51377d], 0
je 0x45a81d
mov dword [0x513774], 0xd
mov al, byte [ebp + 0x10]
call fcn.00459bf4
sub al, 1
jb 0x45a79c
je 0x45a730
dec al
jne 0x45a7dd
push ebp
mov eax, dword [0x513704]
call fcn.004599b8
pop ecx
jmp 0x45a7dd
xor eax, eax
push ebp
push 0x45a77d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
mov ecx, dword [0x513704]
mov edx, dword [ebp - 0x2c]
call fcn.00404ed4
mov edx, dword [ebp - 0x19c]
mov eax, dword [0x510f70]
call fcn.004052a4
call fcn.004036e0
call fcn.00402a78
mov byte [0x51377d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a7dd
xor eax, eax
push ebp
push 0x45a7c0
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00451118
mov byte [0x51377d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a7dd
mov dword [0x513774], 0xe
call fcn.00449a18
test al, al
je 0x45a81d
mov eax, 0x457270
call fcn.0044a048
jmp 0x45a81d
call fcn.00447084
test al, al
je 0x45a81d
push ebp
lea eax, [ebp - 0x1a0]
call fcn.0044b698
mov eax, dword [ebp - 0x1a0]
call fcn.004599b8
pop ecx
call fcn.0044c560
call fcn.00459b58
test al, al
je 0x45a841
lea eax, [ebp - 0x1a4]
call fcn.004493a4
mov eax, dword [ebp - 0x1a4]
call fcn.00452528
call fcn.004525b8
mov dword [0x513774], 0xf
mov eax, dword [0x513644]
test byte [eax + 0x1c1], 4
je 0x45a8f6
call fcn.0044902c
xor eax, eax
push ebp
push 0x45a8ab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [0x5137c4]
call fcn.0043f514
mov ecx, eax
dec ecx
mov edx, 0x45ab38
mov eax, dword [0x5137c4]
call fcn.0043f2f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a8b2
call fcn.004490e0
ret
mov eax, dword [0x513644]
cmp byte [eax + 0x1c0], 0
je 0x45a909
call fcn.00457050
cmp byte [0x513712], 0
je 0x45a91c
mov eax, dword [0x513704]
call fcn.00445e28
mov dword [0x513774], 0x10
call fcn.00459b58
test al, al
je 0x45a934
call fcn.004553c0
mov eax, dword [0x513644]
test byte [eax + 0x1c2], 0x80
jne 0x45a950
call fcn.004553fc
jmp 0x45a950
mov byte [ebp - 0x8d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a9ee
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45a9e3
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x45a9d5
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45a9d5
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
call fcn.00459ce0
test al, al
je 0x45a9d5
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045c6cc
mov eax, dword [eax + 4]
push eax
call fcn.00407874
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45a979
ret
mov dword [0x513774], 0x12
cmp byte [ebp + 8], 2
je 0x45aa2e
mov eax, dword [0x513644]
test byte [eax + 0x1c2], 0x80
jne 0x45aa2e
call fcn.00455500
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aa57
mov eax, dword [ebp - 0x60]
call fcn.00403c2c
call fcn.00407288
mov byte [eax + 0xe9], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ab01
lea eax, [ebp - 0x1b0]
mov edx, 0xf
call fcn.00404bd0
lea eax, [ebp - 0xa4]
call fcn.00404bac
lea eax, [ebp - 0x8c]
call fcn.00404bac
lea eax, [ebp - 0x6c]
call fcn.00404bac
lea eax, [ebp - 0x5c]
call fcn.00404bac
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404bd0
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404bd0
lea eax, [ebp - 0x24]
call fcn.00404bac
lea eax, [ebp - 0x18]
mov edx, dword [0x443370]
call fcn.00405810
ret