Function at 0x5d9c70
Capabilities:
Check for time delay via gettickcount
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x794f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0xc38]
push ebx
mov dword [esp + 0x78], ebx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov dword [esp + 0x1d8], 0
cmp byte [edi + 0xcf0], 0
je 0x5d9d38
push 0x64
lea eax, [esp + 0xf8]
push 0
push eax
call fcn.0064edd0
add esp, 0xc
mov dword [esp + 0xf4], 0x64
mov byte [edi + 0xc69], 1
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp byte [edi + 0xc64], 0
je 0x5d9d68
cmp dword [0x87c4e4], 0
je 0x5d9d59
cmp dword [0x87c4e8], 0x10
mov eax, dword [0x87c4d4]
jae 0x5d9d1a
mov eax, 0x87c4d4
mov esi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
push eax
call esi
push 0x81d6c8
call esi
mov byte [edi + 0xc69], 0
mov byte [edi + 0xc64], 0
push ebx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0xd98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
push 2
call eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x5d9d9a
cmp byte [edi + 0xcb0], 0
jne 0x5d9d9a
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, edx
mov dword [esp + 0x28], eax
mov eax, esi
mov dword [esp + 0x2c], eax
mov eax, ebx
jmp 0x5d9dcc
mov eax, dword [edi + 0xcdc]
mov edx, dword [edi + 0xcd0]
mov esi, dword [edi + 0xcd4]
mov ebx, dword [edi + 0xcd8]
mov ecx, dword [edi + 0xc94]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc90]
cmp byte [edi + 0xcb0], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
je 0x5d9df4
mov dword [esp + 0xf8], 1
cmp byte [edi + 0xc68], 0
je 0x5da250
cmp dword [edi + 0xc80], 0
mov ecx, dword [edi + 0xc7c]
mov dword [esp + 0x20], ecx
lea ecx, [edi + 0xc80]
je 0x5d9f6d
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], edx
xor ebx, ebx
mov esi, ecx
cmp dword [esi], 0
je 0x5d9f47
cmp ebx, 3
je 0x5d9e50
cmp dword [esi + 4], 0
jne 0x5d9e7f
cmp byte [edi + 0xc68], 0
jne 0x5d9e7f
mov eax, dword [edi + 0xcd0]
mov ecx, dword [edi + 0xcd4]
mov edx, dword [edi + 0xcd8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xcdc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x5d9e9d
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0xd98]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x130]
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa4], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0xac], ecx
mov ecx, dword [edi + 0xd98]
lea eax, [esp + 0xa0]
mov dword [esp + 0x48], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
push eax
mov eax, dword [esp + 0x28]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
inc ebx
add esi, 4
cmp ebx, 4
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jl 0x5d9e3c
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x20], 0
fld1
fst dword [esp + 0x4c]
fstp dword [esp + 0x48]
je 0x5da14e
mov ecx, dword [edi + 0xd98]
mov esi, dword [ecx]
mov eax, dword [esi + 0x12c]
call eax
mov ecx, dword [edi + 0xd98]
mov edx, dword [esi + 0x130]
push eax
call edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov dl, byte [edi + 0xcf8]
mov esi, ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], eax
mov dword [esp + 0x40], ebx
test dl, dl
je 0x5da082
cmp ebx, ecx
jg 0x5d9fe5
cmp dword [esp + 0x1c], eax
jle 0x5da07e
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x9c], edx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0xa8], ecx
mov ecx, dword [edi + 0xd98]
lea edx, [esp + 0xa0]
mov dword [esp + 0x88], eax
mov dword [esp + 0xac], eax
push edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x84], ebx
mov dword [esp + 0xa8], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x140]
push edx
call eax
cmp dword [esp + 0x40], esi
jle 0x5da059
fild dword [esp + 0x40]
fidiv dword [esp + 0x94]
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x98]
cmp dword [esp + 0x44], ecx
jle 0x5da14e
fild dword [esp + 0x44]
fidiv dword [esp + 0x98]
fstp dword [esp + 0x48]
jmp 0x5da14e
test dl, dl
jne 0x5da0c8
cmp byte [edi + 0xcb0], 0
je 0x5da0c8
mov edx, dword [edi + 0xc50]
cmp byte [edx + 0x708], 0
jne 0x5da0c8
mov ebx, dword [edi + 0xd98]
mov esi, dword [ebx]
push 0
push 0
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x5c]
add esi, 0xa0
call fcn.004348b0
push eax
mov eax, dword [esi]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0xd98]
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
push eax
mov eax, dword [esp + 0x28]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
cmp byte [edi + 0xc6a], 0
mov ecx, dword [edi + 0xd30]
mov edx, dword [edi + 0xd34]
mov dword [edi + 0xd38], ecx
mov dword [edi + 0xd3c], edx
jne 0x5da1d5
mov ecx, dword [edi + 0xd98]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
call edx
test al, al
je 0x5da1d5
mov ebx, dword [edi + 0xd38]
mov dword [esp + 0x50], ebx
fild dword [esp + 0x50]
mov eax, dword [edi + 0xd3c]
mov dword [esp + 0x20], eax
fdiv dword [esp + 0x4c]
call fcn.0076f850
fild dword [esp + 0x20]
mov dword [edi + 0xd38], eax
fdiv dword [esp + 0x48]
call fcn.0076f850
push 0
push 0
mov esi, edi
mov dword [edi + 0xd3c], eax
call fcn.005dab70
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xd38], ebx
mov dword [edi + 0xd3c], ecx
mov ecx, dword [edi + 0xd98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
push 2
call eax
mov ecx, dword [edi + 0xd98]
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call edx
mov ecx, dword [edi + 0xd98]
mov edx, dword [edi + 0xc7c]
mov bl, al
mov eax, dword [ecx]
mov eax, dword [eax + 0x130]
push edx
call eax
mov byte [edi + 0xc69], 0
cmp dword [0x87c4e4], 0
je 0x5daa0e
cmp dword [0x87c4e8], 0x10
mov eax, dword [0x87c4d4]
jae 0x5da23b
mov eax, 0x87c4d4
mov esi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
push eax
call esi
push 0x81d6c8
call esi
jmp 0x5daa0e
mov eax, dword [edi + 0xcf4]
lea edx, [esp + 0x9c]
push edx
xor esi, esi
push eax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
call dword [sym.imp.user32.dll_ClientToScreen]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], eax
add eax, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
add ecx, eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xa0]
push ecx
push edx
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.user32.dll_OffsetRect]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
push esi
sub eax, edx
mov dword [esp + 0x14], edx
push 0x11
sub ecx, ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [edi + 0xc7c]
lea edx, [esp + 0x164]
mov dword [esp + 0x164], esi
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x168], 0x6c
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x64]
push esi
push ebx
mov dword [esp + 0x64], ebx
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x80]
push esi
push ebx
call edx
cmp byte [edi + 0xcf8], 0
je 0x5da7ef
push 1
call dword [sym.imp.user32.dll_GetSystemMetrics]
cmp dword [edi + 0xc80], esi
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0xc7c]
mov dword [esp + 0x20], eax
lea eax, [edi + 0xc80]
je 0x5da4c8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
xor ecx, ecx
mov ebx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
cmp dword [ebx], 0
je 0x5da4a4
cmp ecx, 3
je 0x5da3c1
cmp dword [ebx + 4], 0
je 0x5da3c1
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
sar esi, 1
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x18], esi
jmp 0x5da3e1
mov esi, dword [edi + 0xcd8]
mov ecx, dword [edi + 0xcd0]
mov edx, dword [edi + 0xcd4]
mov dword [esp + 0x18], esi
mov esi, dword [edi + 0xcdc]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xd4], ecx
add ecx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], eax
add eax, edx
lea edx, [esp + 0xf4]
push edx
push 0x1000000
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x94]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0xa0], ecx
add ecx, eax
mov eax, dword [ebx]
lea edx, [esp + 0xe4]
mov dword [esp + 0xa8], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
add ebx, 4
cmp ecx, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], ecx
jl 0x5da387
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0xd30]
mov edx, dword [edi + 0xd34]
push 0
push eax
mov esi, edi
mov dword [edi + 0xd38], ecx
mov dword [edi + 0xd3c], edx
call fcn.005dab70
mov eax, dword [edi + 0xc50]
cmp byte [eax + 0x6f8], 0
je 0x5da5d1
cmp byte [eax + 0x6f9], 0
jne 0x5da5d1
cmp dword [edi + 0xcec], 3
jge 0x5da5bf
mov eax, dword [eax + 0xec]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
lea esi, [ecx + eax]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xc94]
add eax, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0x4c], 0x7fffffff
mov byte [esp + 0x27], 0
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x88], eax
mov edi, edi
mov eax, dword [edi + 0xc6c]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
jne 0x5da593
mov eax, dword [esp + 0x4c]
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x5da59a
cmp eax, dword [esp + 0xc0]
jge 0x5da59a
mov byte [esp + 0x27], 1
jmp 0x5da5a5
cmp eax, 0x88760219
jne 0x5da5b9
cmp byte [esp + 0x27], 0
jne 0x5da685
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, dword [esp + 0x88]
cmp eax, 0xc8
jb 0x5da560
inc dword [edi + 0xcec]
mov eax, dword [edi + 0xc6c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push 0
push 1
push eax
call edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], ecx
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
add eax, edx
lea edx, [esp + 0xf4]
push edx
push 0x1000000
lea edx, [esp + 0x5c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], ecx
add ecx, eax
push edx
lea edx, [esp + 0x74]
mov dword [esp + 0x80], ecx
mov eax, dword [edi + 0xc74]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp byte [edi + 0xd44], 0
mov ebx, eax
je 0x5da664
mov ecx, dword [esp + 0x20]
push ecx
mov esi, edi
call fcn.005daa40
mov byte [edi + 0xd44], 1
push ebx
mov ebx, str.Redraw_Windowed
mov byte [edi + 0xc69], 0
call fcn.005d7860
mov edx, dword [esp + 0x74]
test al, al
sete bl
push edx
jmp 0x5daa13
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xe8], edx
add esi, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xd0], edx
lea edx, [esp + 0xf4]
push edx
push 0x1000000
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0xcc], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0xf8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xd4], eax
mov eax, dword [edi + 0xc74]
push ebx
lea edx, [esp + 0xf4]
mov dword [edi + 0xcec], 0
mov dword [esp + 0xdc], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x88], ecx
jmp 0x5da760
mov eax, dword [edi + 0xc6c]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x4c]
push ecx
push eax
call edx
test eax, eax
jl 0x5da760
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x88]
jb 0x5da791
mov ecx, dword [esp + 0xbc]
sub ecx, eax
test ecx, ecx
jg 0x5da760
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x70], edx
lea edx, [esp + 0xf4]
push edx
push 0x1000000
lea edx, [esp + 0x6c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x48]
push edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
push ebx
lea edx, [esp + 0x64]
jmp 0x5da637
mov eax, dword [edi + 0xc50]
cmp byte [eax + 0x3af], 0
jne 0x5da984
cmp byte [eax + 0x3b0], 0
je 0x5da984
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], ecx
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
add eax, edx
lea edx, [esp + 0xf4]
push edx
push 0x1000000
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x74], ecx
add ecx, eax
mov eax, dword [edi + 0xc78]
push ebx
lea edx, [esp + 0x74]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, esi
jge 0x5da88e
mov ebx, str.Redraw_FullScreen_Flip__1_
jmp 0x5da9fc
cmp byte [edi + 0xc64], 0
je 0x5da92c
cmp byte [edi + 0xcb0], 0
je 0x5da92c
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edx, dword [edi + 0xcb8]
lea eax, [ecx + ebx]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0xcb4]
sub eax, ecx
sub eax, ebx
cmp ecx, esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jle 0x5da911
mov ecx, dword [edi + 0xd00]
mov edx, dword [ecx]
mov edx, dword [edx + 0x58]
push 0x88ba80
lea eax, [esp + 0xb0]
push eax
call edx
mov eax, dword [esp + 0x40]
cmp eax, esi
jle 0x5da92c
mov ecx, dword [edi + 0xd00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
push 0x88ba80
lea edx, [esp + 0x3c]
push edx
call eax
mov eax, dword [edi + 0xc78]
mov ecx, dword [edi + 0xd30]
mov edx, dword [edi + 0xd34]
push 1
push eax
mov esi, edi
mov dword [edi + 0xd38], ecx
mov dword [edi + 0xd3c], edx
call fcn.005dab70
mov esi, dword [0x88b148]
mov eax, dword [edi + 0xc74]
mov ecx, dword [eax]
xor edx, edx
cmp byte [esi + 0x6e1], dl
setne dl
lea edx, [edx*8 + 1]
push edx
push 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ebx, str.Redraw_FullScreen_Flip__2_
jmp 0x5da9fc
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], ecx
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
add eax, edx
lea edx, [esp + 0xf4]
push edx
push 0x1000000
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x5c]
push edx
mov edx, ebx
push edx
mov dword [esp + 0x78], ecx
add ecx, eax
mov eax, dword [edi + 0xc74]
lea edx, [esp + 0x74]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ebx, str.Redraw_FullScreen_Blt
push eax
mov byte [edi + 0xc69], 0
call fcn.005d7860
test al, al
sete bl
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov al, bl
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4