Function at 0x541c20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x3c], 0x20
cmp dword [0x74e714], 0
jne 0x541d95
push 0
mov eax, dword [0x761714]
push eax
push 0
mov ecx, dword [0x7619b8]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x44]
mov esi, dword [str._bddd]
imul esi, edx
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea esi, [esi + eax + 6]
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add esi, eax
push esi
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x44]
mov esi, dword [0x694fd8]
imul esi, eax
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [esi + eax + 6]
push ecx
mov edx, dword [0x694fe4]
sub edx, 2
push edx
mov eax, dword [0x694fe0]
sub eax, 3
push eax
push 0x54c80000
push str.Op_Caddy
push str.caddyClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x74e714], eax
cmp dword [0x74e714], 0
jne 0x541cde
mov eax, 1
jmp 0x54204c
mov dword [0x74d430], 0
mov ecx, dword [0x761904]
push ecx
mov edx, dword [0x74e714]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x74e714]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [0x74e714]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [0x745030], 0
je 0x541d95
mov dword [0x745030], 0
cmp dword [0x74d444], 0
je 0x541d95
mov edx, dword [0x74d444]
mov dword [ebp - 0x48], edx
mov dword [0x74d444], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x10c]
mov dword [ebp - 0x50], ecx
mov edx, dword [0x765714]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x50], 0
je 0x541d81
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov dword [0x765714], eax
call fcn.00541c20
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x50], edx
jmp 0x541d59
mov eax, dword [ebp - 0x18]
mov dword [0x765714], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.005dd2a0
add esp, 4
cmp dword [0x765714], 0xffffffff
jne 0x541dc8
lea edx, [ebp - 0x14]
push edx
mov eax, dword [0x74e714]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [0x74e714]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
jmp 0x54204c
cmp dword [0x74d444], 0
jne 0x541df7
push 0
push 0
push 0
push str.caddy_list
push 0x74d444
call fcn.005dd300
add esp, 0x14
test eax, eax
je 0x541df7
mov eax, 1
jmp 0x54204c
mov eax, dword [0x74d444]
mov ecx, dword [eax + 0x10c]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
je 0x541e32
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x765714]
jne 0x541e27
xor eax, eax
jmp 0x54204c
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
jmp 0x541e05
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x38], 0
jmp 0x541e4b
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [0x751d28]
jge 0x541e81
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x9d0
mov edx, dword [0x75afc8]
mov eax, dword [edx + ecx]
cmp eax, dword [0x765714]
jne 0x541e7f
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
mov edx, dword [0x751d28]
mov dword [ebp - 0x38], edx
jmp 0x541e42
cmp dword [ebp - 0x34], 0xffffffff
jne 0x541e8e
xor eax, eax
jmp 0x54204c
mov eax, dword [0x74d444]
push eax
call fcn.005dd260
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x541eaf
mov eax, 1
jmp 0x54204c
push 8
call fcn.00668220
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x541ed6
mov eax, 1
jmp 0x54204c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x765714]
mov dword [eax], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [0x74e714]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
cdq
idiv ecx
mov dword [ebp - 0x24], eax
mov eax, dword [0x745030]
cdq
idiv dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x745030]
cdq
idiv dword [ebp - 0x24]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
imul eax, edx
mov ecx, dword [ebp - 0x44]
add ecx, eax
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
imul eax, edx
mov ecx, dword [ebp - 0x44]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov edx, dword [0x6969c4]
mov dword [ebp - 0x4c], edx
mov dword [0x6969c4], 0
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x9d0
mov ecx, dword [0x75afc8]
cmp dword [ecx + eax], 0xc61
je 0x541fac
mov edx, dword [ebp - 0x34]
imul edx, edx, 0x9d0
mov eax, dword [0x75afc8]
cmp dword [eax + edx], 0xc60
je 0x541fac
cmp dword [0x7567a4], 0x280
jle 0x541fac
mov dword [ebp - 0x54], 0xc
jmp 0x541fb3
mov dword [ebp - 0x54], 0xa
mov cx, word [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x34]
imul edx, edx, 0x9d0
mov eax, dword [0x75afc8]
mov ecx, dword [eax + edx + 0x9c0]
push ecx
mov edx, dword [ebp - 0x34]
imul edx, edx, 0x9d0
mov eax, dword [0x75afc8]
mov ecx, dword [eax + edx]
push ecx
call fcn.005e00d0
add esp, 4
push eax
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x9d0
mov ecx, dword [0x75afc8]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [0x74e714]
push eax
call fcn.00559330
add esp, 0x24
mov ecx, dword [ebp - 0x4c]
mov dword [0x6969c4], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [0x74e714]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x745030]
add ecx, 1
mov dword [0x745030], ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret