Function at 0x5833ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov byte [esp], cl
mov esi, edx
mov ebx, eax
lea edx, [esp + 4]
mov eax, dword [ebx + 0x24c]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebx + 0x54]
movzx edx, word [eax + 0x52]
and dx, 1
cmp dx, 1
jne 0x583654
mov edx, dword [ebx + 0x24c]
cmp byte [edx + 0x29e], 2
je 0x58374e
cmp byte [edx + 0x299], 1
jne 0x583432
cmp dword [eax + 0x24], 0
jl 0x583434
mov eax, dword [ebx + 0x54]
call fcn.0055f79c
mov eax, dword [eax + 0xd0]
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2c]
push eax
push 7
call sub.user32.dll_GetSystemMetrics
mov edi, eax
pop eax
sub edi, eax
jmp 0x583434
xor edi, edi
mov eax, ebx
call fcn.00589e88
mov ecx, eax
lea edx, [esp + 4]
mov eax, esi
call fcn.005661d8
cmp byte [ebx + 0x78], 0
je 0x58374e
mov eax, dword [ebx + 0x54]
cmp dword [eax + 0x44], 0
je 0x58374e
test edi, edi
jle 0x58374e
push 0xcc0020
mov eax, ebx
call fcn.00587350
push eax
mov eax, ebx
call fcn.005872b8
push eax
mov ebp, dword [ebx + 0x54]
mov eax, dword [ebp + 0x44]
call fcn.0045f8dc
call fcn.0045a044
push eax
mov eax, dword [ebx + 0x54]
call fcn.0055f79c
mov eax, dword [eax + 0xd0]
mov edx, dword [ebp + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2e]
sub eax, edi
push eax
lea eax, [esp + 0x18]
xor edx, edx
call fcn.00594f38
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call sub.gdi32.dll_BitBlt
push 0xcc0020
mov eax, ebx
call fcn.00587350
push eax
mov eax, ebx
call fcn.005872b8
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x44]
call fcn.0045f8dc
call fcn.0045a044
push eax
lea eax, [esp + 0x14]
xor edx, edx
call fcn.00594f4c
push eax
mov eax, dword [ebx + 0x54]
call fcn.0055f79c
mov eax, dword [eax + 0xd0]
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2c]
sub eax, edi
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 0x54]
call fcn.0055f79c
mov eax, dword [eax + 0xd0]
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x30]
sub eax, edi
mov ebp, dword [esp + 0xc]
sub ebp, eax
push 0xcc0020
mov eax, ebx
call fcn.00587350
push eax
mov eax, ebx
call fcn.005872b8
add eax, ebp
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x44]
call fcn.0045f8dc
call fcn.0045a044
push eax
lea eax, [esp + 0x14]
xor edx, edx
call fcn.00594f4c
push eax
mov eax, dword [ebx + 0x54]
call fcn.0055f79c
mov eax, dword [eax + 0xd0]
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2c]
sub eax, edi
push eax
mov eax, dword [esp + 0x20]
push eax
push ebp
push esi
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 0x54]
call fcn.0055f79c
mov eax, dword [eax + 0xd0]
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x32]
sub eax, edi
mov ebp, dword [esp + 0x10]
sub ebp, eax
push 0xcc0020
mov eax, ebx
call fcn.00587350
add eax, ebp
push eax
mov eax, ebx
call fcn.005872b8
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x44]
call fcn.0045f8dc
call fcn.0045a044
push eax
mov eax, dword [ebx + 0x54]
call fcn.0055f79c
mov eax, dword [eax + 0xd0]
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x32]
sub eax, edi
push eax
mov eax, dword [esp + 0x20]
push eax
push ebp
mov eax, dword [esp + 0x20]
push eax
push esi
call sub.gdi32.dll_BitBlt
jmp 0x58374e
movzx edx, byte [eax + 0x39]
mov byte [esp + 1], dl
cmp byte [eax + 0x38], 0
jne 0x583669
mov eax, ebx
call fcn.0058512c
mov edi, dword [ebx + 0x24c]
cmp byte [edi + 0x29e], 2
je 0x583710
mov eax, dword [ebx + 0x24c]
call fcn.004b1ac0
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x24c]
call fcn.004b1a80
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040ab40
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, ebx
call fcn.00587350
push eax
mov eax, ebx
call fcn.005872b8
xor ecx, ecx
pop edx
call fcn.0040ab40
lea ecx, [esp + 0x38]
mov edx, dword [ebx + 0x54]
mov eax, edi
call fcn.00561100
lea ecx, [esp + 0x34]
xor edx, edx
xor eax, eax
call fcn.0040ab70
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 0x24c]
call fcn.004bb0e0
push eax
push 0
movzx ecx, byte [ebx + 0x46]
or cl, byte [esp + 0xd]
mov edx, dword [ebx + 0x24c]
mov eax, esi
call fcn.00553b3c
cmp byte [esp], 0
je 0x58374e
mov eax, dword [ebx + 0x24c]
call fcn.005538e0
push 0
lea eax, [esp + 0x18]
push eax
mov dx, 6
xor eax, eax
call fcn.0040cab0
mov edx, eax
mov eax, dword [0x62f274]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00594dbc
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.00589290
mov byte [ebx + 0x46], 0
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret