Function at 0x502600
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0xb2c]
test ebx, ebx
je 0x502e0d
mov eax, dword [esi + 0xafc]
test eax, eax
jne 0x502e0d
mov ecx, dword [esi + 0x38]
mov eax, 1
cmp ecx, 2
je 0x502c26
cmp dword [esi + 0xb70], eax
je 0x502c26
mov ecx, dword [esi + 0xb74]
mov ebp, dword [sym.imp.USER32.dll_SetRect]
cmp ecx, eax
jne 0x50273c
test ebx, ebx
je 0x50273c
mov edi, dword [ebx]
test edi, edi
je 0x50272c
cmp dword [edi + 8], 3
jne 0x50272c
cmp dword [edi + 0x34], 0x64
jne 0x50268d
mov ecx, dword [esi + 0xb70]
xor eax, eax
cmp ecx, 1
setle al
dec eax
and eax, 0x63
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
lea edx, [edx + eax - 1]
push edx
mov edx, dword [edi + 0x14]
lea edx, [edx + ecx - 1]
push edx
push eax
lea eax, [esp + 0x24]
push ecx
push eax
call ebp
mov eax, dword [edi + 0x34]
test eax, eax
jle 0x5026e2
mov ecx, dword [esi + 0xb80]
mov edx, dword [esi + 0xb78]
push eax
mov eax, dword [esi + 0xb7c]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
call fcn.00462360
jmp 0x50272c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
push ecx
mov ecx, dword [esi + 0xb78]
call fcn.00460990
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x18]
push 0
push edx
mov edx, dword [esi + 0xb7c]
push eax
push ecx
mov ecx, dword [esi + 0xb78]
push edx
call fcn.00460990
mov dword [edi + 8], 4
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x50265e
mov eax, 1
mov ebx, dword [esi + 0xb2c]
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x502864
mov edi, dword [ebx]
test edi, edi
je 0x502859
cmp dword [edi + 8], eax
jne 0x502859
cmp dword [edi + 4], eax
jne 0x502859
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x502859
cmp dword [esi + 0xb74], 2
jne 0x5027a0
mov eax, dword [esi + 0xb78]
mov ecx, dword [esi + 0xb7c]
push 1
push 0
push 0
push 0
push eax
call fcn.00460990
mov eax, dword [esi + 0xb28]
test eax, eax
je 0x50283d
mov cl, byte [eax + 0x14]
test cl, cl
je 0x50283d
mov ecx, dword [esi + 0xb7c]
push 1
push str.scr_multim::pe
call fcn.0045feb0
test eax, eax
je 0x50283d
cmp dword [esi + 0xb74], 2
jne 0x5027f6
mov ecx, dword [esi + 0x208]
test ecx, ecx
je 0x5027f6
mov edx, dword [esi + 0xb7c]
push 0
push 0
push 0
push 0
push edx
call fcn.0051f710
mov edx, dword [edi + 0x24]
lea eax, [edi + 0x18]
lea ecx, [edi + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0xb28]
push edx
call fcn.0051f260
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
push 0
push eax
mov eax, dword [esi + 0xb7c]
push ecx
mov ecx, dword [esi + 0xb28]
push edx
push eax
call fcn.0051f710
mov ecx, dword [esi + 0xb7c]
push str.scr_multim::pe
call fcn.0045ff30
mov ebp, dword [esi + 0xb70]
mov eax, 1
xor ecx, ecx
cmp ebp, eax
setle cl
dec ecx
and ecx, 0xffffff9d
add ecx, 0x64
mov dword [edi + 0x34], ecx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x502752
mov ebx, dword [esi + 0xb2c]
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x5029ce
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [ebx]
test edi, edi
je 0x5029bf
mov ecx, dword [edi + 8]
mov eax, 1
cmp ecx, eax
jne 0x5029bf
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x5029bf
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x5029bf
mov eax, dword [edi + 0x28]
test eax, eax
je 0x5029a7
mov ecx, dword [esi + 0xb7c]
push str.scr_multim::pe
call fcn.0045ff70
test eax, eax
je 0x5029a7
mov edx, dword [esi + 0xb7c]
push 1
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0xb7c]
mov ecx, dword [edi + 0x2c]
push ecx
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi + 0x24]
cmp eax, 4
ja case.0x502901.0
jmp dword [eax*4 + 0x502e18]
mov eax, 0x10
jmp 0x502929
mov eax, 0x14
jmp 0x502929
mov eax, 0x15
jmp 0x502929
mov eax, 0x17
jmp 0x502929
mov eax, 0xf
mov ecx, dword [0x6633d4]
push eax
call fcn.0041f700
mov ecx, dword [esi + 0xb7c]
mov eax, dword [eax]
push eax
mov edx, dword [ecx + 0x38]
push edx
call ebp
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
mov ebx, eax
mov eax, dword [edi + 0x10]
lea edx, [edx + eax - 1]
push edx
mov edx, dword [edi + 0x14]
lea edx, [edx + ecx - 1]
push edx
push eax
lea eax, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0xb7c]
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0x18]
push 0x10
push ecx
mov ecx, dword [eax + 0x38]
push 0xffffffffffffffff
push edx
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esi + 0xb7c]
push ebx
mov eax, dword [edx + 0x38]
push eax
call ebp
mov ecx, dword [esi + 0xb7c]
push str.scr_multim::pe
call fcn.0045ffc0
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 0xb70]
xor ecx, ecx
cmp edx, 1
setle cl
dec ecx
and ecx, 0xffffff9d
add ecx, 0x64
mov dword [edi + 0x34], ecx
mov ebx, dword [ebx + 4]
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x50287c
cmp dword [esi + 0xb74], 1
jne 0x502aa6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x502e0d
mov ebp, dword [esi + 0xb2c]
test ebp, ebp
je 0x502e0d
mov ebx, dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp]
test edi, edi
je 0x502a93
cmp dword [edi + 8], 1
jne 0x502a93
cmp dword [edi + 0x34], 1
jle 0x502a93
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
lea edx, [edx + eax - 1]
push edx
mov edx, dword [edi + 0x14]
lea edx, [edx + ecx - 1]
push edx
push eax
lea eax, [esp + 0x24]
push ecx
push eax
call ebx
mov eax, dword [edi + 0x34]
cmp eax, 0x64
jge 0x502a6c
mov ecx, dword [esi + 0xb80]
mov edx, dword [esi + 0xb78]
push eax
mov eax, dword [esi + 0xb7c]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
call fcn.00462360
jmp 0x502a93
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
push ecx
mov ecx, dword [esi + 0xb7c]
call fcn.00460990
mov dword [edi + 8], 2
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x5029fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x14]
or edi, 0xffffffff
test eax, eax
je 0x502e0d
mov eax, dword [esi + 0xb2c]
test eax, eax
mov dword [esp + 0x10], eax
je 0x502e0d
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
je 0x502b5a
cmp dword [eax + 8], 1
jne 0x502b5a
cmp dword [eax + 0x34], 1
jle 0x502b5a
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
lea ebx, [edx + ecx - 1]
mov edx, dword [eax + 0x18]
lea ebp, [edx + edi - 1]
mov edx, dword [esi + 0xb60]
cmp edx, 0xffffffff
je 0x502b04
cmp ecx, edx
jge 0x502b0a
mov dword [esi + 0xb60], ecx
mov ecx, dword [esi + 0xb64]
cmp ecx, 0xffffffff
je 0x502b19
cmp edi, ecx
jge 0x502b1f
mov dword [esi + 0xb64], edi
mov ecx, dword [esi + 0xb68]
cmp ecx, 0xffffffff
je 0x502b2e
cmp ebx, ecx
jle 0x502b34
mov dword [esi + 0xb68], ebx
mov ecx, dword [esi + 0xb6c]
cmp ecx, 0xffffffff
je 0x502b43
cmp ebp, ecx
jle 0x502b49
mov dword [esi + 0xb6c], ebp
mov ecx, dword [eax + 0x34]
cmp ecx, 0x64
jl 0x502b58
mov dword [eax + 8], 2
mov edi, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x502ac7
cmp edi, 0x64
jl 0x502bc1
mov ecx, dword [esi + 0xb6c]
mov edx, dword [esi + 0xb68]
mov eax, dword [esi + 0xb64]
push ecx
mov ecx, dword [esi + 0xb60]
push edx
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push 1
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0xb7c]
push edx
push eax
call fcn.00460990
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp edi, 0xffffffff
je 0x502e0d
mov ecx, dword [esi + 0xb6c]
mov edx, dword [esi + 0xb68]
mov eax, dword [esi + 0xb64]
push ecx
mov ecx, dword [esi + 0xb60]
push edx
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0xb80]
mov ecx, dword [esi + 0xb78]
mov edx, dword [esi + 0xb7c]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esi + 0x20]
push edx
call fcn.00462360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push str.RedrawFull_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esi + 0xb2c]
test ebx, ebx
je 0x502cc4
mov ebp, 1
mov edi, dword [ebx]
test edi, edi
je 0x502cbd
cmp dword [edi + 4], ebp
jne 0x502cbd
mov eax, dword [edi + 8]
cmp eax, 2
je 0x502c69
cmp eax, ebp
je 0x502c69
cmp eax, 3
jne 0x502cbd
mov dword [edi + 8], 4
jmp 0x502cbd
mov eax, dword [esi + 0xb28]
test eax, eax
je 0x502cb6
mov cl, byte [eax + 0x14]
test cl, cl
je 0x502cb6
mov ecx, dword [esi + 0x20]
push ebp
push str.scr_multim::pe
call fcn.0045feb0
test eax, eax
je 0x502cb6
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
push 0
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0xb28]
push edx
push eax
call fcn.0051f710
mov ecx, dword [esi + 0x20]
push str.scr_multim::pe
call fcn.0045ff30
mov dword [edi + 8], 2
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x502c44
mov eax, dword [esi + 0xb2c]
test eax, eax
mov dword [esp + 0x10], eax
je 0x502e0d
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
mov edi, dword [ebx]
test edi, edi
je 0x502dfe
mov eax, dword [edi + 4]
test eax, eax
jne 0x502dfe
mov eax, dword [edi + 8]
cmp eax, 2
je 0x502d15
cmp eax, 1
je 0x502d15
cmp eax, 3
jne 0x502dfe
mov dword [edi + 8], 4
jmp 0x502dfe
mov eax, dword [edi + 0x28]
test eax, eax
je 0x502df7
mov ecx, dword [esi + 0x20]
push str.scr_multim::pe
call fcn.0045ff70
test eax, eax
je 0x502df7
mov ecx, dword [esi + 0x20]
push 1
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x20]
mov eax, dword [edi + 0x2c]
push eax
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi + 0x24]
cmp eax, 4
ja case.0x502d5d.0
jmp dword [eax*4 + 0x502e2c]
mov eax, 0x10
jmp 0x502d85
mov eax, 0x14
jmp 0x502d85
mov eax, 0x15
jmp 0x502d85
mov eax, 0x17
jmp 0x502d85
mov eax, 0xf
mov ecx, dword [0x6633d4]
push eax
call fcn.0041f700
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x38]
push ecx
call ebp
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
mov ebx, eax
mov eax, dword [edi + 0x10]
lea edx, [edx + eax - 1]
push edx
mov edx, dword [edi + 0x14]
lea edx, [edx + ecx - 1]
push edx
push eax
lea eax, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x20]
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0x18]
push 0x10
push ecx
mov ecx, dword [eax + 0x38]
push 0xffffffffffffffff
push edx
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esi + 0x20]
push ebx
mov eax, dword [edx + 0x38]
push eax
call ebp
mov ecx, dword [esi + 0x20]
push str.scr_multim::pe
call fcn.0045ffc0
mov ebx, dword [esp + 0x10]
mov dword [edi + 8], 2
mov ebx, dword [ebx + 4]
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x502cde
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret