Function at 0x4524c4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x35
push 0
push 0
dec ecx
jne 0x4524cd
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 [0x43bafc]
call fcn.00405ec4
xor eax, eax
push ebp
push 0x453286
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0043f804
test al, al
je 0x452544
cmp byte [0x55c6bc], 0
je 0x452544
cmp dword [0x55c6b4], 0
jne 0x452544
mov eax, dword [0x55a340]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x452544
mov byte [ebp - 0x8d], 1
jmp 0x453212
mov byte [ebp - 0x8d], 0
call fcn.0040cd8c
fstp qword [0x55c768]
wait
mov eax, dword [ebp - 0x20]
mov dword [0x552a58], eax
mov eax, 0x55c72c
call fcn.00405090
mov dword [0x55c770], 1
xor eax, eax
push ebp
push 0x4531ed
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407808
mov byte [eax + 0xe9], 1
mov ecx, dword [0x55c630]
mov dl, 1
mov eax, dword [0x43ba34]
call fcn.00454bd8
mov dword [ebp - 0x60], eax
xor eax, eax
push ebp
push 0x4531dc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x4525be
mov eax, dword [ebp - 0x1c]
mov dword [0x55c6e4], eax
test bl, bl
je 0x4525d1
cmp dword [ebp - 0x1c], 0
je 0x4525d1
mov eax, dword [ebp - 0x1c]
sub eax, 5
mov dword [ebp - 0x1c], eax
call fcn.00452328
cmp esi, dword [0x55b668]
je 0x4525e6
mov ebx, dword [0x55b668]
jmp 0x4525ee
mov ebx, dword [0x559df4]
mov ebx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x1c], 0
je 0x452614
mov dword [0x55c770], 0x65
mov eax, dword [ebp - 0x1c]
call fcn.0043e9ac
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x452629
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x452670
mov dword [0x55c770], 0x66
mov eax, esi
call fcn.0043e8e8
mov dword [ebp - 0x9c], eax
mov dword [0x55c770], 0x67
cmp dword [ebp - 0x9c], 0
je 0x452663
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x452670
test ebx, ebx
je 0x452670
mov eax, ebx
call fcn.0043e8e8
mov dword [ebp - 0x9c], eax
mov eax, dword [0x55c640]
test byte [eax + 0x205], 0x10
je 0x4526bc
test ebx, ebx
je 0x4526bc
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov eax, ebx
call fcn.0043e8e8
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x4526b0
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x4526bc
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov dword [0x55c770], 0x68
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax + 0x23]
mov eax, dword [0x55c640]
mov ecx, dword [eax]
call dword [ecx + 0xc]
call fcn.0042851c
test al, al
je 0x4526ff
mov eax, dword [0x55c640]
mov dl, byte [0x45329c]
not edx
and dl, byte [eax + 0x1e8]
mov eax, dword [0x55c640]
call fcn.0042a69c
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax + 4]
mov eax, dword [0x55c640]
call fcn.0042a418
mov eax, dword [0x55c640]
cmp byte [eax + 0x1e0], 0
jne 0x452732
mov eax, dword [0x55c640]
cmp byte [eax + 0x1e1], 0
jne 0x452732
xor eax, eax
jmp 0x452734
mov al, 1
mov byte [0x55c70c], al
mov eax, dword [0x55c640]
test byte [eax + 0x1c2], 0x10
setne al
mov byte [0x55c70d], al
mov dword [0x55c770], 2
xor ebx, ebx
cmp byte [ebp + 8], 2
je 0x452808
mov eax, dword [0x55c640]
cmp byte [eax + 0x1bd], 0
je 0x452808
push ebp
call fcn.0044f960
pop ecx
mov dword [ebp - 0x94], eax
mov dword [0x55c770], 0xc9
cmp dword [ebp - 0x94], 0xffffffff
je 0x452808
lea ecx, [ebp - 0x178]
mov eax, dword [0x55c640]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x94]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x178], 0
je 0x452806
push 0x242040
lea ecx, [ebp - 0x17c]
xor edx, edx
mov eax, dword [0x55c640]
call fcn.00429108
mov eax, dword [ebp - 0x17c]
call fcn.0040556c
push eax
lea ecx, [ebp - 0x180]
mov eax, dword [0x55c640]
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.0040556c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov bl, 1
mov dword [0x55c770], 3
test bl, bl
jne 0x453197
cmp dword [ebp - 0x14], 0
jne 0x452828
call fcn.0043d148
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x45283c
call fcn.00407808
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
jne 0x45285e
call fcn.00407808
cmp dword [eax + 0x1c], 0
je 0x45285e
call fcn.00407808
lea eax, [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov edx, 0xcc
mov eax, dword [ebp - 0x18]
call fcn.00427dbc
test al, al
jne 0x452874
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [0x55c6e8], eax
mov dword [0x55c770], 4
mov edx, dword [ebp - 0x1c]
add edx, 5
mov eax, dword [0x55c718]
call fcn.00442870
test al, al
jne 0x452b29
cmp dword [0x552a48], 0
je 0x4528b1
mov eax, dword [0x552a48]
call fcn.0040415c
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.00443d5c
mov dword [0x552a48], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x60]
call fcn.00454e28
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xffffffff
je 0x4528f7
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
call fcn.004523c8
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4529a3
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x452991
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
call fcn.0045242c
test al, al
je 0x452991
mov eax, dword [0x55c630]
call fcn.00454e8c
xor eax, eax
push ebp
push 0x45298a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
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 0x452991
mov eax, dword [0x55c630]
call fcn.00454e98
ret
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x452917
xor eax, eax
push ebp
push 0x452b22
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 0x452aa7
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x452a95
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
call fcn.0045242c
test al, al
je 0x452a95
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x174]
xor ecx, ecx
mov edx, 0xcc
call fcn.00403758
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 0x452a95
cmp dword [ebp - 0xbc], 0
je 0x452a95
cmp dword [ebp - 0xb0], 0
je 0x452a95
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 [0x552a48]
call fcn.00443a74
mov eax, dword [ebp - 0x98]
call fcn.004523c8
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x4529d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452b29
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x452b21
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x452b13
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
call fcn.0045242c
test al, al
je 0x452b13
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov eax, dword [eax + 4]
push eax
call fcn.00407ec4
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x452ad0
ret
mov dword [0x55c770], 5
cmp byte [ebp + 8], 2
je 0x453197
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x452c02
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x452bf0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x452bf0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
call fcn.0045246c
test al, al
je 0x452bf0
mov eax, dword [0x55c630]
call fcn.00454e8c
xor eax, eax
push ebp
push 0x452be9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
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 0x452bf0
mov eax, dword [0x55c630]
call fcn.00454e98
ret
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x452b5d
xor eax, eax
push ebp
push 0x453170
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x55c770], 6
mov byte [0x55c77a], 1
mov eax, dword [0x55c640]
test byte [eax + 0x1c1], 0x10
je 0x452c34
call fcn.0043f304
mov dword [0x55c770], 7
mov eax, dword [0x552a48]
mov dword [0x55c790], eax
mov eax, dword [0x55c640]
mov dword [0x55c794], eax
mov dword [0x55c770], 0x2bd
mov eax, dword [ebp - 0x1c]
mov dword [0x55c780], eax
mov eax, dword [ebp - 0x20]
mov dword [0x55c77c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x55c784], eax
mov dword [0x55c770], 0x2be
push ebp
call fcn.00450978
pop ecx
mov eax, 0x55c788
mov edx, dword [0x55c700]
call fcn.004050e4
mov dword [0x55c770], 0x2bf
mov eax, dword [0x552a44]
mov dword [0x55c78c], eax
mov dword [0x55c770], 0x2c0
mov dword [0x55c6fc], 0x55c77c
call fcn.00441888
mov dword [0x55c770], 0x2c1
call fcn.0043e384
mov dword [0x55c770], 0x2c2
call fcn.0044a5e4
call fcn.0043f5c8
test al, al
je 0x452d15
lea eax, [ebp - 0x188]
call fcn.00441cc8
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.00441fc4
mov edx, dword [ebp - 0x184]
mov eax, 0x55c6a4
call fcn.004050e4
mov eax, 0x55ca28
mov edx, dword [0x55c6a4]
call fcn.004050e4
call fcn.00442160
test al, al
je 0x452d38
mov eax, 0x44236c
call fcn.004427d4
mov dword [0x55c770], 8
cmp byte [0x55c77a], 0
je 0x4530d5
mov eax, dword [0x55c640]
test byte [eax + 0x205], 1
je 0x452da8
call fcn.0040cd8c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x18c]
call fcn.0040d9f0
mov edx, dword [ebp - 0x18c]
mov eax, dword [0x55c764]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x55c764]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [0x55c640]
cmp eax, dword [edx + 0x1fc]
jle 0x452da8
xor edx, edx
mov eax, dword [0x55c764]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, 0x55c7a4
call fcn.00405090
call fcn.0044227c
test al, al
je 0x452ded
mov eax, 0x4425bc
call fcn.004427d4
lea ecx, [ebp - 0x190]
mov dl, 0xd
mov eax, dword [0x55c640]
call fcn.00429108
mov edx, dword [ebp - 0x190]
mov ecx, dword [0x55c7a4]
mov eax, 6
call fcn.00444690
mov dword [0x55c770], 9
inc dword [0x55c64c]
mov dword [0x55c770], 0xa
push ebp
lea eax, [ebp - 0x198]
call fcn.0044e674
pop ecx
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.0044dcf8
mov edx, dword [ebp - 0x194]
mov eax, 0x55c6f4
call fcn.004050e4
mov dword [0x55c770], 0xb
mov eax, dword [0x55c640]
test byte [eax + 0x1e8], 1
je 0x452f88
mov dword [0x55c770], 0xc
mov byte [0x55c779], 1
call fcn.0043e384
call fcn.004421a4
test al, al
je 0x452e7a
mov eax, 0x44f9e8
call fcn.004427d4
cmp byte [0x55c779], 0
je 0x452fa9
mov dword [0x55c770], 0xd
mov al, byte [ebp + 0x10]
call fcn.00452380
sub al, 1
jb 0x452f28
je 0x452ebc
dec al
jne 0x452f69
push ebp
mov eax, dword [0x55c700]
call fcn.00452144
pop ecx
jmp 0x452f69
xor eax, eax
push ebp
push 0x452f09
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
mov ecx, dword [0x55c700]
mov edx, dword [ebp - 0x2c]
call fcn.004053b8
mov edx, dword [ebp - 0x19c]
mov eax, dword [0x559d94]
call fcn.00405788
call fcn.00403afc
call fcn.00402c94
mov byte [0x55c779], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452f69
xor eax, eax
push ebp
push 0x452f4c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004498a4
mov byte [0x55c779], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452f69
mov dword [0x55c770], 0xe
call fcn.004421a4
test al, al
je 0x452fa9
mov eax, 0x44f9fc
call fcn.004427d4
jmp 0x452fa9
call fcn.0043f810
test al, al
je 0x452fa9
push ebp
lea eax, [ebp - 0x1a0]
call fcn.00443e24
mov eax, dword [ebp - 0x1a0]
call fcn.00452144
pop ecx
call fcn.00444cec
call fcn.004522e4
test al, al
je 0x452fcd
lea eax, [ebp - 0x1a4]
call fcn.00441b30
mov eax, dword [ebp - 0x1a4]
call fcn.0044acb4
call fcn.0044ad44
mov dword [0x55c770], 0xf
mov eax, dword [0x55c640]
test byte [eax + 0x1c1], 4
je 0x453082
call fcn.004417b8
xor eax, eax
push ebp
push 0x453037
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [0x55c7c0]
call fcn.00437ca0
mov ecx, eax
dec ecx
mov edx, 0x4532c4
mov eax, dword [0x55c7c0]
call fcn.00437a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45303e
call fcn.0044186c
ret
mov eax, dword [0x55c640]
cmp byte [eax + 0x1c0], 0
je 0x453095
call fcn.0044f7dc
cmp byte [0x55c70e], 0
je 0x4530a8
mov eax, dword [0x55c700]
call fcn.0043e5b4
mov dword [0x55c770], 0x10
call fcn.004522e4
test al, al
je 0x4530c0
call fcn.0044db4c
mov eax, dword [0x55c640]
test byte [eax + 0x1c2], 0x80
jne 0x4530dc
call fcn.0044db88
jmp 0x4530dc
mov byte [ebp - 0x8d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45317a
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45316f
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x453161
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x453161
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
call fcn.0045246c
test al, al
je 0x453161
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.00454e58
mov eax, dword [eax + 4]
push eax
call fcn.00407ec4
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x453105
ret
mov dword [0x55c770], 0x12
cmp byte [ebp + 8], 2
je 0x4531ba
mov eax, dword [0x55c640]
test byte [eax + 0x1c2], 0x80
jne 0x4531ba
call fcn.0044dc8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4531e3
mov eax, dword [ebp - 0x60]
call fcn.0040415c
call fcn.00407808
mov byte [eax + 0xe9], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45328d
lea eax, [ebp - 0x1b0]
mov edx, 0xf
call fcn.004050b4
lea eax, [ebp - 0xa4]
call fcn.00405090
lea eax, [ebp - 0x8c]
call fcn.00405090
lea eax, [ebp - 0x6c]
call fcn.00405090
lea eax, [ebp - 0x5c]
call fcn.00405090
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.004050b4
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004050b4
lea eax, [ebp - 0x24]
call fcn.00405090
lea eax, [ebp - 0x18]
mov edx, dword [0x43bafc]
call fcn.00405d80
ret