Function at 0x52ca48
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, dword [0x5865d0]
lea edi, [ebp - 4]
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
call fcn.005243c8
cmp ax, 0x151
jbe 0x52ca87
mov eax, dword [ebx]
call fcn.005243c8
cmp ax, 0x157
jae 0x52ca87
mov dword [ebp - 8], 2
jmp 0x52ca92
mov eax, dword [edi]
mov eax, dword [eax + 0x88]
mov dword [ebp - 8], eax
mov eax, dword [edi]
cmp byte [eax + 0x50], 0
je 0x52caac
mov eax, dword [esi]
call fcn.00511c74
cmp al, 1
jne 0x52caac
mov dword [ebp - 8], 2
xor eax, eax
mov dword [ebp - 0x40], eax
call fcn.004b9988
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov word [ebp - 0x4e], 0
mov eax, dword [ebx]
call fcn.0052431c
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
call fcn.0052431c
mov dword [ebp - 0x4c], eax
mov eax, dword [esi]
call fcn.0050c054
mov dword [ebp - 0x44], eax
call fcn.004b9988
sub eax, 0x7d0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
call fcn.005243a0
mov word [ebp - 0x50], ax
mov eax, dword [ebx]
call fcn.005243c8
cmp ax, 0x151
jbe 0x52cb25
mov eax, dword [ebx]
call fcn.005243c8
cmp ax, 0x157
jb 0x52cb29
xor eax, eax
jmp 0x52cb2b
mov al, 1
mov byte [ebp - 0x51], al
mov eax, dword [esi]
xor edx, edx
call fcn.005106bc
jmp 0x52db7a
xor eax, eax
push ebp
push 0x52db5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp byte [eax + 0x330], 0
je 0x52cb67
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52cc0f
cmp dword [ebp - 0x40], 0
jbe 0x52cc0f
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp byte [eax + 0x18c], 0
jne 0x52cb9f
call fcn.004b9988
sub eax, dword [ebp - 0x40]
cmp eax, 0x9c4
ja 0x52cbbe
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp byte [eax + 0x18c], 0
je 0x52cc0f
call fcn.004b9988
sub eax, dword [ebp - 0x40]
cmp eax, 0xfa0
jbe 0x52cc0f
call fcn.004b9988
mov edx, dword [esi]
sub eax, dword [edx + 0x6c]
cmp eax, 0x7d0
jbe 0x52cc0f
push 0x52db90
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
push eax
mov eax, dword [ebx]
call fcn.005243a0
mov edx, eax
mov eax, dword [edi]
pop ecx
call fcn.0052e9c8
mov eax, dword [edi]
inc dword [eax + 0xcc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52cc7a
cmp dword [ebp - 0x14], 0x14
jle 0x52cc7a
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
add eax, 0xffffffce
sub eax, 0x32
jb 0x52cc7a
sub eax, 0x1d
je 0x52cc7a
push 0x52dba4
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
push eax
mov eax, dword [ebx]
call fcn.005243a0
mov edx, eax
mov eax, dword [edi]
pop ecx
call fcn.0052e9c8
mov eax, dword [edi]
inc dword [eax + 0xcc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
je 0x52ccef
mov eax, dword [ebx]
call fcn.005243a0
cmp ax, word [ebp - 0x50]
je 0x52ccb0
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, 0x52dbc0
call fcn.0051f280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
lea ecx, [ebp - 0x30]
mov eax, dword [0x586a98]
mov eax, dword [eax]
movzx edx, word [ebp - 0x50]
call fcn.00517e24
test al, al
je 0x52ccd1
mov eax, dword [ebp - 0x30]
call fcn.004041e0
jmp 0x52ccef
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, 0x52dbc0
call fcn.0051f280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
lea ecx, [ebp - 0x2c]
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, 0x52dbd4
call fcn.00517ec4
test al, al
jne 0x52cd1f
lea ecx, [ebp - 0x2c]
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, 0x52dbe8
call fcn.00517ec4
test al, al
je 0x52cd34
mov eax, dword [ebp - 0x2c]
call fcn.004041e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [ebx]
call fcn.0052432c
test al, al
je 0x52d29b
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0xcc], edx
cmp dword [ebp - 0x10], 0
jle 0x52d24c
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
jne 0x52d24c
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp byte [eax + 0x398], 0
je 0x52d24c
cmp byte [ebp - 0x51], 0
jne 0x52d24c
push 3
mov eax, dword [esi]
call fcn.00511cb0
push eax
mov eax, dword [esi]
call fcn.00511c88
mov edx, eax
mov eax, dword [0x586a98]
mov eax, dword [eax]
pop ecx
call fcn.00514740
test eax, eax
jne 0x52d222
mov eax, dword [edi]
cmp dword [eax + 0xc4], 0
jle 0x52cf68
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc4]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52dbf4]
wait
fnstsw ax
sahf
jb 0x52ce31
push 0
mov eax, dword [edi]
mov ecx, dword [eax + 0xc8]
mov eax, dword [edi]
mov edx, dword [eax + 0xc4]
mov eax, dword [0x586a98]
mov eax, dword [eax]
call fcn.00515aac
test eax, eax
jne 0x52ce40
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0xc4], edx
jmp 0x52cf68
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc4]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fstp dword [ebp - 0x58]
wait
mov eax, dword [ebx]
call fcn.00524270
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
fcomp dword [ebp - 0x58]
wait
fnstsw ax
sahf
jbe 0x52cf68
mov eax, dword [edi]
cmp byte [eax + 0xd4], 0
je 0x52cf2d
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc4]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52dbf8]
wait
fnstsw ax
sahf
jbe 0x52cf2d
push 0x258
push 0
push 0
mov eax, dword [edi]
mov ecx, dword [eax + 0xc8]
mov eax, dword [edi]
mov edx, dword [eax + 0xc4]
mov eax, dword [edi]
call fcn.005306f8
jmp 0x52cf5e
mov eax, 0x52dc04
call fcn.004b8ff8
mov eax, dword [edi]
mov eax, dword [eax + 0xc8]
push eax
push 2
push 0
push 0
push 0
mov eax, dword [edi]
mov ecx, dword [eax + 0xc4]
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, dword [edi]
call fcn.00522bb0
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0xc4], edx
mov eax, dword [ebx]
call fcn.00524270
cmp eax, 3
jle 0x52d09b
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
add eax, 0xffffffce
sub eax, 0x32
jb 0x52cfff
sub eax, 0x1d
je 0x52cfff
push 0
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [0x586a98]
mov eax, dword [eax]
pop ecx
call fcn.00515aac
test eax, eax
jne 0x52cfff
mov eax, 0x52dc18
call fcn.004b8ff8
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [esi]
pop ecx
call fcn.0050f220
mov eax, dword [ebx]
call fcn.00524270
imul eax, eax, 0x64
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e8
jle 0x52cff6
mov dword [ebp - 8], 0x3e8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Sleep_2
push 1
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [0x586a98]
mov eax, dword [eax]
pop ecx
call fcn.00515aac
test eax, eax
jle 0x52d152
mov eax, dword [edi]
cmp byte [eax + 0xd4], 0
je 0x52d065
mov eax, dword [ebx]
call fcn.00524270
cmp eax, 4
jle 0x52d065
push 0x258
push 0
push 0
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [edi]
pop ecx
call fcn.005306f8
jmp 0x52d152
mov eax, 0x52dc2c
call fcn.004b8ff8
mov eax, dword [ebx]
call fcn.005246d0
push eax
push 2
push 0
push 0
push 0
mov eax, dword [ebx]
call fcn.005246c0
mov ecx, eax
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, dword [edi]
call fcn.00522bb0
jmp 0x52d152
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
add eax, 0xffffffce
sub eax, 0x32
jb 0x52d112
sub eax, 0x1d
je 0x52d112
push 0
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [0x586a98]
mov eax, dword [eax]
pop ecx
call fcn.00515aac
test eax, eax
jne 0x52d112
mov eax, dword [ebx]
call fcn.00524270
cmp eax, 2
jle 0x52d108
mov eax, 0x52dc40
call fcn.004b8ff8
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [esi]
pop ecx
call fcn.0050f220
push 0xc8
call sub.kernel32.dll_Sleep_2
push 0
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [0x586a98]
mov eax, dword [eax]
pop ecx
call fcn.00515aac
test eax, eax
jle 0x52d152
mov eax, dword [0x5866d8]
mov eax, dword [eax]
cmp byte [eax + 0x84], 0
jne 0x52d152
mov eax, dword [0x5866d8]
mov eax, dword [eax]
call fcn.0057586c
mov eax, dword [edi]
cmp dword [eax + 0xc4], 0
jle 0x52d24c
mov eax, dword [edi]
cmp byte [eax + 0xd4], 0
je 0x52d1e5
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc4]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [edi]
fild dword [eax + 0xc8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52dbf8]
wait
fnstsw ax
sahf
jbe 0x52d1e5
push 0x258
push 0
push 0
mov eax, dword [edi]
mov ecx, dword [eax + 0xc8]
mov eax, dword [edi]
mov edx, dword [eax + 0xc4]
mov eax, dword [edi]
call fcn.005306f8
jmp 0x52d216
mov eax, 0x52dc54
call fcn.004b8ff8
mov eax, dword [edi]
mov eax, dword [eax + 0xc8]
push eax
push 2
push 0
push 0
push 0
mov eax, dword [edi]
mov ecx, dword [eax + 0xc4]
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, dword [edi]
call fcn.00522bb0
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0xc4], edx
jmp 0x52d24c
mov eax, dword [ebx]
call fcn.00524270
cmp eax, 3
jle 0x52d24c
mov eax, dword [ebx]
call fcn.005246c0
mov edx, dword [edi]
mov dword [edx + 0xc4], eax
mov eax, dword [ebx]
call fcn.005246d0
mov edx, dword [edi]
mov dword [edx + 0xc8], eax
mov eax, dword [0x586404]
mov eax, dword [eax]
cmp byte [eax + 0x5cd], 0
je 0x52d28e
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
add eax, 0xffffffce
sub eax, 0x32
jb 0x52d28e
sub eax, 0x1d
je 0x52d28e
call fcn.0040339c
mov eax, 0xc8
call fcn.004033c4
add eax, 0x64
push eax
call sub.kernel32.dll_Sleep_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52d2d1
mov eax, dword [esi]
mov edx, 4
call fcn.0050def8
test eax, 0x2000000
jne 0x52d2d1
mov eax, dword [ebx]
call fcn.005243b0
test al, al
je 0x52d2d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
cmp dword [ebp - 0x10], 3
jge 0x52d30e
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52d30e
mov eax, dword [edi]
cmp byte [eax + 0x5c], 0
je 0x52d30e
mov edx, ebx
mov eax, dword [edi]
call fcn.005317c0
test al, al
je 0x52d30e
push 0x52dc60
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52d3cd
cmp byte [ebp - 0x51], 0
jne 0x52d3cd
mov eax, dword [esi]
cmp word [eax + 0x68], 0
jbe 0x52d3cd
mov eax, dword [ebx]
call fcn.005243a0
mov edx, dword [esi]
cmp ax, word [edx + 0x68]
je 0x52d3cd
lea ecx, [ebp - 0x30]
mov eax, dword [esi]
movzx edx, word [eax + 0x68]
mov eax, dword [0x586a98]
mov eax, dword [eax]
call fcn.00517e24
test al, al
je 0x52d3c4
mov eax, dword [ebp - 0x30]
call fcn.00524270
push eax
mov eax, dword [ebx]
call fcn.00524270
pop edx
cmp edx, eax
jg 0x52d3b1
push 0x52dc70
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebx]
call fcn.004041e0
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
mov eax, dword [ebx]
call fcn.005243a0
mov word [ebp - 0x50], ax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
call fcn.0052431c
mov dword [ebp - 0x18], eax
jmp 0x52d3cd
mov eax, dword [esi]
xor edx, edx
call fcn.005106bc
mov eax, dword [ebp - 0x30]
call fcn.004041e0
jmp 0x52d3cd
mov eax, dword [esi]
xor edx, edx
call fcn.005106bc
mov eax, dword [esi]
call fcn.00511c74
cmp al, 4
jne 0x52d76d
lea edx, [ebp - 0x2c]
mov eax, dword [0x586a98]
mov eax, dword [eax]
call fcn.00515f1c
test al, al
je 0x52d76d
mov eax, dword [edi]
cmp byte [eax + 0x6c], 0
je 0x52d643
mov eax, dword [ebp - 0x2c]
call fcn.005243b4
mov edx, dword [edi]
imul dword [edx + 0x70]
mov ecx, 0x64
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x2c]
call fcn.0052431c
pop edx
cmp edx, eax
jl 0x52d643
call fcn.004b9988
sub eax, dword [ebp - 0x34]
cmp eax, 0x3e8
jbe 0x52d643
mov eax, dword [edi]
call fcn.00531550
test al, al
je 0x52d643
cmp dword [ebp - 0x1c], 0
jne 0x52d4ab
mov eax, dword [ebx]
call fcn.005246c0
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebx]
call fcn.005246d0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x64]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b8060
mov dword [ebp - 0x20], eax
jmp 0x52d568
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebx]
call fcn.005246c0
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebx]
call fcn.005246d0
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x64]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b8060
push eax
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 0x2c]
call fcn.005246c0
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 0x2c]
call fcn.005246d0
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x64]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b8060
pop edx
xchg edx, eax
sub eax, edx
cdq
xor eax, edx
sub eax, edx
test eax, eax
jne 0x52d568
inc dword [ebp - 0x20]
mov ecx, 8
mov eax, dword [ebp - 0x20]
cdq
idiv ecx
mov dword [ebp - 0x20], edx
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
cmp eax, 7
ja case.default.0x52d592
jmp dword [eax*4 + 0x52d599]
sub dword [ebp - 0x28], 0xc
jmp case.default.0x52d592
add dword [ebp - 0x24], 0xb
sub dword [ebp - 0x28], 0xb
jmp case.default.0x52d592
add dword [ebp - 0x24], 0xc
jmp case.default.0x52d592
add dword [ebp - 0x24], 0xb
add dword [ebp - 0x28], 0xb
jmp case.default.0x52d592
add dword [ebp - 0x28], 0xc
jmp case.default.0x52d592
sub dword [ebp - 0x24], 0xb
add dword [ebp - 0x28], 0xb
jmp case.default.0x52d592
sub dword [ebp - 0x24], 0xc
jmp case.default.0x52d592
sub dword [ebp - 0x24], 0xb
sub dword [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x24]
and eax, 0x80000001
jns 0x52d606
dec eax
or eax, 0xfffffffe
inc eax
mov edx, dword [ebp - 0x28]
and edx, 0x80000001
jns 0x52d616
dec edx
or edx, 0xfffffffe
inc edx
cmp eax, edx
je 0x52d61d
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
call fcn.00524458
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
call fcn.00524468
call fcn.004b9988
mov dword [ebp - 0x34], eax
inc dword [ebp - 0x1c]
jmp 0x52d765
mov eax, dword [ebp - 0x2c]
call fcn.005242f8
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 0x2c]
call fcn.00524308
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebx]
call fcn.005246c0
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebx]
call fcn.005246d0
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x64]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52dc78]
wait
fnstsw ax
sahf
jbe 0x52d6e4
call fcn.004b9988
sub eax, dword [ebp - 0x34]
cmp eax, 0x3e8
jbe 0x52d6e4
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00524458
mov eax, dword [ebx]
call fcn.005246d0
mov edx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00524468
call fcn.004b9988
mov dword [ebp - 0x34], eax
jmp 0x52d765
mov eax, dword [ebp - 0x2c]
call fcn.005246c0
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 0x2c]
call fcn.005246d0
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebx]
call fcn.005246c0
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebx]
call fcn.005246d0
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x64]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52dbf8]
wait
fnstsw ax
sahf
ja 0x52d765
mov eax, dword [ebx]
call fcn.005243a0
movzx edx, ax
mov eax, dword [esi]
call fcn.0050e1b4
call fcn.004b9988
mov edx, dword [edi]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 0x2c]
call fcn.004041e0
mov eax, dword [ebx]
call fcn.00524270
cmp eax, dword [ebp - 8]
jle 0x52d7ff
mov eax, dword [ebx]
call fcn.005243a0
cmp ax, word [ebp - 0x4e]
je 0x52d7ff
mov eax, dword [edi]
call fcn.0052f434
test al, al
je 0x52d7f2
mov edx, dword [ebx]
mov eax, dword [edi]
call fcn.00530b4c
test al, al
jne 0x52d7eb
mov eax, dword [ebx]
call fcn.00524270
mov edx, dword [edi]
cmp eax, dword [edx + 0x88]
jle 0x52d7eb
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
push eax
mov eax, dword [ebx]
call fcn.005243a0
mov edx, eax
mov eax, dword [edi]
pop ecx
call fcn.0052e9c8
push 0x52dc7c
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
call fcn.004b9988
jmp 0x52d7ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [ebx]
call fcn.0052432c
test al, al
je 0x52d817
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db7a
mov eax, dword [esi]
call fcn.00511c74
sub al, 2
jae 0x52d88d
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp byte [eax + 0x94], 0
je 0x52d88d
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
jne 0x52d88d
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52d88d
mov eax, dword [ebx]
call fcn.0052431c
cmp eax, dword [ebp - 0x4c]
jl 0x52d860
mov eax, dword [ebx]
call fcn.005243a0
mov edx, dword [esi]
cmp ax, word [edx + 0x68]
jne 0x52d88d
call fcn.004b9988
sub eax, dword [ebp - 0x3c]
cmp eax, 0xfa0
jbe 0x52d88d
mov eax, dword [edi]
call fcn.0052ed24
test al, al
je 0x52d88d
mov eax, dword [ebx]
call fcn.005243a0
mov word [ebp - 0x4e], ax
call fcn.004b9988
mov dword [ebp - 0x3c], eax
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52d8bf
mov eax, dword [ebx]
call fcn.005243f8
cmp ax, 0xffff
je 0x52d8b2
mov eax, dword [ebx]
call fcn.005243a0
cmp ax, word [ebp - 0x50]
je 0x52d8bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [0x586404]
mov eax, dword [eax]
cmp byte [eax + 0x5cd], 0
je 0x52da47
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp byte [eax + 0x18c], 0
je 0x52da47
mov eax, dword [edi]
cmp dword [eax + 0x80], 0
jne 0x52da47
mov eax, dword [esi]
call fcn.00511c74
add al, 0xfe
sub al, 3
jae 0x52d9b8
mov eax, dword [ebx]
call fcn.0052431c
cmp eax, dword [ebp - 0x18]
jne 0x52d93e
cmp dword [ebp - 0xc], 3
jle 0x52d93e
push ebp
mov eax, dword [ebx]
call fcn.0052c69c
pop ecx
push 0x1f4
call sub.kernel32.dll_Sleep_2
push 0x52dc8c
call sub.kernel32.dll_OutputDebugStringA
inc dword [ebp - 0x48]
jmp 0x52d9fb
cmp dword [ebp - 0xc], 1
jg 0x52d96b
push 4
mov eax, dword [esi]
call fcn.00511cb0
push eax
mov eax, dword [esi]
call fcn.00511c88
mov edx, eax
mov eax, dword [0x586a98]
mov eax, dword [eax]
pop ecx
call fcn.00514740
dec eax
jne 0x52d9fb
mov eax, dword [ebx]
call fcn.0052431c
push eax
mov eax, dword [ebx]
call fcn.005243b4
pop edx
cmp edx, eax
jne 0x52d9fb
mov eax, dword [ebx]
call fcn.00524270
cmp eax, 4
jle 0x52d9fb
mov eax, dword [edi]
call fcn.0052f434
test al, al
je 0x52d9fb
push ebp
mov eax, dword [ebx]
call fcn.0052c69c
pop ecx
push 0x1f4
call sub.kernel32.dll_Sleep_2
push 0x52dc9c
call sub.kernel32.dll_OutputDebugStringA
inc dword [ebp - 0x48]
jmp 0x52d9fb
mov eax, dword [ebx]
call fcn.0052431c
cmp eax, dword [ebp - 0x18]
jne 0x52d9ca
cmp dword [ebp - 0x14], 5
jg 0x52d9de
mov eax, dword [ebx]
call fcn.0052431c
push eax
mov eax, dword [ebx]
call fcn.005243b4
pop edx
cmp edx, eax
jne 0x52d9fb
push ebp
mov eax, dword [ebx]
call fcn.0052c69c
pop ecx
push 0x1f4
call sub.kernel32.dll_Sleep_2
push 0x52dcac
call sub.kernel32.dll_OutputDebugStringA
cmp dword [ebp - 0x48], 2
jle 0x52da8b
mov eax, dword [esi]
call fcn.00511c74
cmp al, 1
jne 0x52da8b
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
push eax
mov eax, dword [ebx]
call fcn.005243a0
mov edx, eax
mov eax, dword [edi]
pop ecx
call fcn.0052e9c8
mov eax, dword [esi]
xor edx, edx
call fcn.005106bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db86
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp byte [eax + 0x9b], 0
je 0x52da82
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
add eax, 0xfffffffe
sub eax, 0xc6
jae 0x52da82
mov eax, dword [esi]
cmp word [eax + 0x68], 0
jne 0x52da8b
push ebp
mov eax, dword [ebx]
call fcn.0052c69c
pop ecx
jmp 0x52da8b
push ebp
mov eax, dword [ebx]
call fcn.0052c69c
pop ecx
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
cmp dword [ebp - 0x40], 0
jne 0x52daa4
call fcn.004b9988
mov dword [ebp - 0x40], eax
mov eax, dword [ebx]
call fcn.0052432c
test al, al
je 0x52dab8
mov eax, dword [ebx]
xor edx, edx
call fcn.00524418
mov eax, dword [ebx]
call fcn.0052431c
cmp eax, dword [ebp - 0x18]
jl 0x52dac9
inc dword [ebp - 0x14]
jmp 0x52dad8
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
call fcn.0052431c
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00511c74
add al, 0xfe
sub al, 3
jae 0x52db0a
mov eax, dword [esi]
call fcn.0050c054
cmp eax, dword [ebp - 0x44]
jne 0x52daf6
inc dword [ebp - 0xc]
jmp 0x52db0a
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.0050c054
mov dword [ebp - 0x44], eax
inc dword [ebp - 0x10]
mov eax, dword [edi]
cmp byte [eax + 0x77], 0
je 0x52db55
mov eax, dword [ebx]
call fcn.0052432c
test al, al
jne 0x52db55
mov eax, dword [ebx]
call fcn.00524270
mov edx, dword [edi]
mov edx, dword [edx + 0x88]
dec edx
cmp eax, edx
jge 0x52db55
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
jne 0x52db55
mov eax, dword [ebx]
call fcn.005246d0
push eax
mov eax, dword [ebx]
call fcn.005246c0
mov edx, eax
mov eax, dword [edi]
pop ecx
call fcn.0052de4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52db7a
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x52cb3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret