Function at 0x5898f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
lea edi, [ebp - 0x68]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov esi, dword [ecx + 0xd4]
neg esi
mov edx, dword [ebp + 8]
push edx
call fcn.00587810
add esi, eax
push esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
neg ecx
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x30]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a7630
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00587670
mov eax, dword [ebp + 8]
push eax
call fcn.00587810
add eax, dword [ebp - 0x10]
mov esi, esp
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00587780
add eax, dword [ebp - 0x14]
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 0x24], eax
mov esi, esp
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xe0]
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp esi, esp
call fcn.00605df0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x589a65
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 4], 0
je 0x5899ff
mov edx, dword [ebp + 8]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x30], edx
mov esi, esp
push 0x18
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
call edx
cmp esi, esp
call fcn.00605df0
test eax, eax
je 0x5899fd
jmp 0x589a65
jmp 0x589a1d
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
call eax
cmp esi, esp
call fcn.00605df0
test eax, eax
je 0x589a1d
jmp 0x589a65
mov ecx, dword [ebp + 8]
push ecx
call fcn.0059ae50
test eax, eax
jne 0x589a4e
mov esi, esp
push 0
push 0x6549b4
push str.code:0008
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, esp
call fcn.00605df0
push 0
call main
mov edx, dword [ebp + 0xc]
push edx
call fcn.005a7700
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
jmp 0x5899ab
mov esi, esp
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xe0]
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp esi, esp
call fcn.00605df0
mov esi, esp
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, esp
call fcn.00605df0
mov edx, dword [ebp - 8]
add edx, 0xd0
mov eax, dword [edx]
mov dword [ebp - 0x58], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x54], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x50], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00587930
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0
jmp 0x589ade
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x60]
jge 0x589b2b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x64]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x24], 0
je 0x589b29
mov eax, dword [ebp - 0x68]
add eax, 0x10
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0059baa0
test eax, eax
je 0x589b29
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0x64
mov eax, dword [ebp - 0x68]
push eax
call fcn.0057a8f0
add esp, 0x10
jmp 0x589ad5
push edx
mov ecx, ebp
push eax
lea edx, [0x589b58]
call fcn.00605e20
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f0da0
add esp, 0x68
cmp ebp, esp
call fcn.00605df0
mov esp, ebp
pop ebp
ret