Function at 0x45c650
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x35
push 0
push 0
dec ecx
jne 0x45c659
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 [0x445c88]
call fcn.00405de8
xor eax, eax
push ebp
push 0x45d412
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00449990
test al, al
je 0x45c6d0
cmp byte [0x6436c0], 0
je 0x45c6d0
cmp dword [0x6436b8], 0
jne 0x45c6d0
mov eax, dword [0x64179c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x45c6d0
mov byte [ebp - 0x8d], 1
jmp 0x45d39e
mov byte [ebp - 0x8d], 0
call fcn.0040db50
fstp qword [0x64376c]
wait
mov eax, dword [ebp - 0x20]
mov dword [0x61ebd8], eax
mov eax, 0x643730
call fcn.00404fdc
mov dword [0x643774], 1
xor eax, eax
push ebp
push 0x45d379
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004077f8
mov byte [eax + 0xe9], 1
mov ecx, dword [0x643634]
mov dl, 1
mov eax, dword [0x445bc0]
call fcn.0045ed64
mov dword [ebp - 0x60], eax
xor eax, eax
push ebp
push 0x45d368
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x45c74a
mov eax, dword [ebp - 0x1c]
mov dword [0x6436e8], eax
test bl, bl
je 0x45c75d
cmp dword [ebp - 0x1c], 0
je 0x45c75d
mov eax, dword [ebp - 0x1c]
sub eax, 5
mov dword [ebp - 0x1c], eax
call fcn.0045c4b4
cmp esi, dword [0x642668]
je 0x45c772
mov ebx, dword [0x642668]
jmp 0x45c77a
mov ebx, dword [0x640f48]
mov ebx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x1c], 0
je 0x45c7a0
mov dword [0x643774], 0x65
mov eax, dword [ebp - 0x1c]
call fcn.00448b38
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x45c7b5
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x45c7fc
mov dword [0x643774], 0x66
mov eax, esi
call fcn.00448a74
mov dword [ebp - 0x9c], eax
mov dword [0x643774], 0x67
cmp dword [ebp - 0x9c], 0
je 0x45c7ef
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x45c7fc
test ebx, ebx
je 0x45c7fc
mov eax, ebx
call fcn.00448a74
mov dword [ebp - 0x9c], eax
mov eax, dword [0x643644]
test byte [eax + 0x205], 0x10
je 0x45c848
test ebx, ebx
je 0x45c848
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov eax, ebx
call fcn.00448a74
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x45c83c
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x27], 0
jne 0x45c848
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov dword [0x643774], 0x68
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax + 0x23]
mov eax, dword [0x643644]
mov ecx, dword [eax]
call dword [ecx + 0xc]
call fcn.00432630
test al, al
je 0x45c88b
mov eax, dword [0x643644]
mov dl, byte [0x45d428]
not edx
and dl, byte [eax + 0x1e8]
mov eax, dword [0x643644]
call fcn.004347b0
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax + 4]
mov eax, dword [0x643644]
call fcn.0043452c
mov eax, dword [0x643644]
cmp byte [eax + 0x1e0], 0
jne 0x45c8be
mov eax, dword [0x643644]
cmp byte [eax + 0x1e1], 0
jne 0x45c8be
xor eax, eax
jmp 0x45c8c0
mov al, 1
mov byte [0x643710], al
mov eax, dword [0x643644]
test byte [eax + 0x1c2], 0x10
setne al
mov byte [0x643711], al
mov dword [0x643774], 2
xor ebx, ebx
cmp byte [ebp + 8], 2
je 0x45c994
mov eax, dword [0x643644]
cmp byte [eax + 0x1bd], 0
je 0x45c994
push ebp
call fcn.00459aec
pop ecx
mov dword [ebp - 0x94], eax
mov dword [0x643774], 0xc9
cmp dword [ebp - 0x94], 0xffffffff
je 0x45c994
lea ecx, [ebp - 0x178]
mov eax, dword [0x643644]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x94]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x178], 0
je 0x45c992
push 0x242040
lea ecx, [ebp - 0x17c]
xor edx, edx
mov eax, dword [0x643644]
call fcn.0043321c
mov eax, dword [ebp - 0x17c]
call fcn.004054b8
push eax
lea ecx, [ebp - 0x180]
mov eax, dword [0x643644]
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.004054b8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov bl, 1
mov dword [0x643774], 3
test bl, bl
jne 0x45d323
cmp dword [ebp - 0x14], 0
jne 0x45c9b4
call fcn.004472d4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x45c9c8
call fcn.004077f8
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
jne 0x45c9ea
call fcn.004077f8
cmp dword [eax + 0x1c], 0
je 0x45c9ea
call fcn.004077f8
lea eax, [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov edx, 0xcc
mov eax, dword [ebp - 0x18]
call fcn.00431ed0
test al, al
jne 0x45ca00
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [0x6436ec], eax
mov dword [0x643774], 4
mov edx, dword [ebp - 0x1c]
add edx, 5
mov eax, dword [0x64371c]
call fcn.0044c9fc
test al, al
jne 0x45ccb5
cmp dword [0x61ebc8], 0
je 0x45ca3d
mov eax, dword [0x61ebc8]
call fcn.0040408c
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.0044dee8
mov dword [0x61ebc8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x60]
call fcn.0045efb4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xffffffff
je 0x45ca83
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
call fcn.0045c554
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45cb2f
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45cb1d
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
call fcn.0045c5b8
test al, al
je 0x45cb1d
mov eax, dword [0x643634]
call fcn.0045f018
xor eax, eax
push ebp
push 0x45cb16
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
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 0x45cb1d
mov eax, dword [0x643634]
call fcn.0045f024
ret
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45caa3
xor eax, eax
push ebp
push 0x45ccae
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 0x45cc33
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45cc21
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
call fcn.0045c5b8
test al, al
je 0x45cc21
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x174]
xor ecx, ecx
mov edx, 0xcc
call fcn.00403824
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 0x45cc21
cmp dword [ebp - 0xbc], 0
je 0x45cc21
cmp dword [ebp - 0xb0], 0
je 0x45cc21
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 [0x61ebc8]
call fcn.0044dc00
mov eax, dword [ebp - 0x98]
call fcn.0045c554
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45cb5d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ccb5
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45ccad
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45cc9f
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
call fcn.0045c5b8
test al, al
je 0x45cc9f
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov eax, dword [eax + 4]
push eax
call fcn.004080a0
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45cc5c
ret
mov dword [0x643774], 5
cmp byte [ebp + 8], 2
je 0x45d323
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45cd8e
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x45cd7c
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45cd7c
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
call fcn.0045c5f8
test al, al
je 0x45cd7c
mov eax, dword [0x643634]
call fcn.0045f018
xor eax, eax
push ebp
push 0x45cd75
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
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 0x45cd7c
mov eax, dword [0x643634]
call fcn.0045f024
ret
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45cce9
xor eax, eax
push ebp
push 0x45d2fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x643774], 6
mov byte [0x64377e], 1
mov eax, dword [0x643644]
test byte [eax + 0x1c1], 0x10
je 0x45cdc0
call fcn.00449490
mov dword [0x643774], 7
mov eax, dword [0x61ebc8]
mov dword [0x643794], eax
mov eax, dword [0x643644]
mov dword [0x643798], eax
mov dword [0x643774], 0x2bd
mov eax, dword [ebp - 0x1c]
mov dword [0x643784], eax
mov eax, dword [ebp - 0x20]
mov dword [0x643780], eax
mov eax, dword [ebp - 0xc]
mov dword [0x643788], eax
mov dword [0x643774], 0x2be
push ebp
call fcn.0045ab04
pop ecx
mov eax, 0x64378c
mov edx, dword [0x643704]
call fcn.00405030
mov dword [0x643774], 0x2bf
mov eax, dword [0x61ebc4]
mov dword [0x643790], eax
mov dword [0x643774], 0x2c0
mov dword [0x643700], 0x643780
call fcn.0044ba14
mov dword [0x643774], 0x2c1
call fcn.00448510
mov dword [0x643774], 0x2c2
call fcn.00454770
call fcn.00449754
test al, al
je 0x45cea1
lea eax, [ebp - 0x188]
call fcn.0044be54
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.0044c150
mov edx, dword [ebp - 0x184]
mov eax, 0x6436a8
call fcn.00405030
mov eax, 0x643a2c
mov edx, dword [0x6436a8]
call fcn.00405030
call fcn.0044c2ec
test al, al
je 0x45cec4
mov eax, 0x44c4f8
call fcn.0044c960
mov dword [0x643774], 8
cmp byte [0x64377e], 0
je 0x45d261
mov eax, dword [0x643644]
test byte [eax + 0x205], 1
je 0x45cf34
call fcn.0040db50
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x18c]
call fcn.0040e88c
mov edx, dword [ebp - 0x18c]
mov eax, dword [0x643768]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x643768]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [0x643644]
cmp eax, dword [edx + 0x1fc]
jle 0x45cf34
xor edx, edx
mov eax, dword [0x643768]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, 0x6437a8
call fcn.00404fdc
call fcn.0044c408
test al, al
je 0x45cf79
mov eax, 0x44c748
call fcn.0044c960
lea ecx, [ebp - 0x190]
mov dl, 0xd
mov eax, dword [0x643644]
call fcn.0043321c
mov edx, dword [ebp - 0x190]
mov ecx, dword [0x6437a8]
mov eax, 6
call fcn.0044e81c
mov dword [0x643774], 9
inc dword [0x643650]
mov dword [0x643774], 0xa
push ebp
lea eax, [ebp - 0x198]
call fcn.00458800
pop ecx
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.00457e84
mov edx, dword [ebp - 0x194]
mov eax, 0x6436f8
call fcn.00405030
mov dword [0x643774], 0xb
mov eax, dword [0x643644]
test byte [eax + 0x1e8], 1
je 0x45d114
mov dword [0x643774], 0xc
mov byte [0x64377d], 1
call fcn.00448510
call fcn.0044c330
test al, al
je 0x45d006
mov eax, 0x459b74
call fcn.0044c960
cmp byte [0x64377d], 0
je 0x45d135
mov dword [0x643774], 0xd
mov al, byte [ebp + 0x10]
call fcn.0045c50c
sub al, 1
jb 0x45d0b4
je 0x45d048
dec al
jne 0x45d0f5
push ebp
mov eax, dword [0x643704]
call fcn.0045c2d0
pop ecx
jmp 0x45d0f5
xor eax, eax
push ebp
push 0x45d095
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
mov ecx, dword [0x643704]
mov edx, dword [ebp - 0x2c]
call fcn.00405304
mov edx, dword [ebp - 0x19c]
mov eax, dword [0x640ec8]
call fcn.004056d4
call fcn.00403ab4
call fcn.00402d5c
mov byte [0x64377d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d0f5
xor eax, eax
push ebp
push 0x45d0d8
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00453a30
mov byte [0x64377d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d0f5
mov dword [0x643774], 0xe
call fcn.0044c330
test al, al
je 0x45d135
mov eax, 0x459b88
call fcn.0044c960
jmp 0x45d135
call fcn.0044999c
test al, al
je 0x45d135
push ebp
lea eax, [ebp - 0x1a0]
call fcn.0044dfb0
mov eax, dword [ebp - 0x1a0]
call fcn.0045c2d0
pop ecx
call fcn.0044ee78
call fcn.0045c470
test al, al
je 0x45d159
lea eax, [ebp - 0x1a4]
call fcn.0044bcbc
mov eax, dword [ebp - 0x1a4]
call fcn.00454e40
call fcn.00454ed0
mov dword [0x643774], 0xf
mov eax, dword [0x643644]
test byte [eax + 0x1c1], 4
je 0x45d20e
call fcn.0044b944
xor eax, eax
push ebp
push 0x45d1c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [0x6437c4]
call fcn.00441e2c
mov ecx, eax
dec ecx
mov edx, 0x45d450
mov eax, dword [0x6437c4]
call fcn.00441c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d1ca
call fcn.0044b9f8
ret
mov eax, dword [0x643644]
cmp byte [eax + 0x1c0], 0
je 0x45d221
call fcn.00459968
cmp byte [0x643712], 0
je 0x45d234
mov eax, dword [0x643704]
call fcn.00448740
mov dword [0x643774], 0x10
call fcn.0045c470
test al, al
je 0x45d24c
call fcn.00457cd8
mov eax, dword [0x643644]
test byte [eax + 0x1c2], 0x80
jne 0x45d268
call fcn.00457d14
jmp 0x45d268
mov byte [ebp - 0x8d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d306
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x45d2fb
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x45d2ed
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x45d2ed
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
call fcn.0045c5f8
test al, al
je 0x45d2ed
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x60]
call fcn.0045efe4
mov eax, dword [eax + 4]
push eax
call fcn.004080a0
inc dword [ebp - 0x94]
dec dword [ebp - 0xa8]
jne 0x45d291
ret
mov dword [0x643774], 0x12
cmp byte [ebp + 8], 2
je 0x45d346
mov eax, dword [0x643644]
test byte [eax + 0x1c2], 0x80
jne 0x45d346
call fcn.00457e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d36f
mov eax, dword [ebp - 0x60]
call fcn.0040408c
call fcn.004077f8
mov byte [eax + 0xe9], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d419
lea eax, [ebp - 0x1b0]
mov edx, 0xf
call fcn.00405000
lea eax, [ebp - 0xa4]
call fcn.00404fdc
lea eax, [ebp - 0x8c]
call fcn.00404fdc
lea eax, [ebp - 0x6c]
call fcn.00404fdc
lea eax, [ebp - 0x5c]
call fcn.00404fdc
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405000
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00405000
lea eax, [ebp - 0x24]
call fcn.00404fdc
lea eax, [ebp - 0x18]
mov edx, dword [0x445c88]
call fcn.00405ca4
ret