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

Disassembly:
push 0xffffffffffffffff
push 0x5e6cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0xac]
push ebp
lea ecx, [esp + 0x18]
call fcn.0055c900
cmp dword [ebp + 0x100], 5
jne 0x579484
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xa8]
push 0x29
push 0x2b
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
push edi
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0051d990
push 0x29
mov ecx, esi
call fcn.0051c180
push eax
push ebp
push edi
mov ecx, esi
call fcn.005806b0
jmp 0x579c77
mov eax, dword [esi]
mov edx, dword [eax + 0x12c]
push ebp
mov ecx, esi
call edx
test eax, eax
je 0x57962c
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
sub edi, dword [esp + 0x14]
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x5794be
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
jmp 0x5794c7
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x100]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
cmp eax, 2
je 0x5794fc
test eax, eax
je 0x5794fc
cmp eax, 3
je 0x5794fc
cmp eax, 1
jne 0x579573
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
test eax, eax
je 0x579573
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call sub.mfc90u.dll_CWnd::ScreenToClient
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x34]
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x57954c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
jmp 0x579559
push 0x10
call ebx
mov ecx, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0xa8]
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esi + 0x470]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0055d540
mov ecx, eax
call fcn.0055d840
cmp dword [ebp + 0x100], 4
jne 0x579c77
push 0x3d
mov ecx, esi
call fcn.0051c180
mov esi, eax
push esi
push esi
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call sub.mfc90u.dll_CDC::Draw3dRect_1
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call sub.mfc90u.dll_CDC::Draw3dRect_1
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
push esi
push 2
push 2
push edx
call ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push esi
push 2
add eax, 0xfffffffe
push eax
push ecx
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 4]
push esi
add edx, 0xfffffffe
push edx
push 2
push eax
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
push esi
add ecx, 0xfffffffe
push ecx
add edx, 0xfffffffe
push edx
push eax
call ebx
jmp 0x579c77
mov eax, dword [ebp + 0x100]
test eax, eax
je 0x579a62
cmp eax, 1
je 0x579a62
cmp eax, 2
je 0x579892
cmp eax, 3
je 0x579892
cmp eax, 4
jne 0x57987d
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
push ebp
mov ecx, esi
call eax
test eax, eax
je 0x57987d
push 0x1e
mov ecx, esi
call fcn.0051c180
mov edi, dword [esp + 0xa8]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call sub.mfc90u.dll_CDC::FillSolidRect_1
push 0x3d
mov ecx, esi
call fcn.0051c180
mov ebx, eax
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call sub.mfc90u.dll_CDC::Draw3dRect_1
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call sub.mfc90u.dll_CDC::Draw3dRect_1
lea edx, [esi + 0x98]
push edx
push edi
lea ecx, [esp + 0x70]
call fcn.0055cc20
push 1
push 0x6bdc38
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov dword [esp + 0xac], 0
call fcn.00412850
mov ecx, dword [esp + 0x28]
cmp ecx, 0xf
jge 0x579703
mov ecx, 0xf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add edx, 0xfffffffe
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x18]
lea ecx, [ecx + edx + 2]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x24]
add eax, 0xfffffffe
add edx, 2
mov dword [esp + 0x50], ecx
mov ecx, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], 0
call fcn.00539c50
test eax, eax
jle 0x5797fc
nop
mov edx, dword [esp + 0x44]
push edx
mov ecx, ebp
call fcn.00539c60
cmp dword [eax + 0x94], 0
mov dword [esp + 0x24], eax
je 0x5797e7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x80]
push 0
call eax
test eax, eax
je 0x5797e7
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0051c090
mov edx, dword [esp + 0x4c]
cmp dword [eax + 4], edx
jle 0x5797e7
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x88]
push eax
call fcn.00538b20
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push 0
mov dword [esp + 0x60], edx
push 0
lea edx, [esi + 0x490]
mov dword [esp + 0x6c], eax
push edx
lea eax, [esp + 0x64]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x5c]
push eax
push edi
mov dword [esp + 0x74], ecx
call fcn.0055d540
mov ecx, eax
call fcn.0055d840
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
inc dword [esp + 0x44]
mov ecx, ebp
call fcn.00539c50
cmp dword [esp + 0x44], eax
jl 0x579750
push 0
push 0
add esi, 0x490
push esi
lea edx, [esp + 0x54]
push edx
push edi
call fcn.0055d540
mov ecx, eax
call fcn.0055d840
mov eax, dword [edi + 4]
push ebx
push 2
push 2
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov ecx, dword [esp + 0x1c]
push ebx
add ecx, 0xfffffffe
push 2
push ecx
mov ecx, edi
call fcn.0051d150
mov edx, dword [esp + 0x20]
push ebx
add edx, 0xfffffffe
push edx
push 2
mov ecx, edi
call fcn.0051d150
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebx
add eax, 0xfffffffe
add ecx, 0xfffffffe
push eax
push ecx
mov ecx, edi
call fcn.0051d150
lea ecx, [esp + 0x68]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0055cc60
jmp 0x579c77
mov edx, dword [esp + 0xa8]
push ebp
push edx
mov ecx, esi
call fcn.005807a0
jmp 0x579c77
push 0xf
mov ecx, esi
call fcn.0051c180
mov edi, dword [esp + 0xa8]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call sub.mfc90u.dll_CDC::FillSolidRect_1
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
mov ebx, eax
test ebx, ebx
je 0x5799ae
mov ecx, ebx
call sub.mfc90u.dll_CWnd::GetStyle
test eax, 0x4100
je 0x5798f7
mov eax, dword [esi + 0x488]
cmp eax, 0xffffffff
jne 0x5798e8
mov eax, dword [esi + 0x484]
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call sub.mfc90u.dll_CDC::FillSolidRect_1
jmp 0x579967
push ebx
lea ecx, [esp + 0x28]
call fcn.0055c8a0
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call sub.mfc90u.dll_CWnd::ScreenToClient
mov ebx, dword [esp + 0x2c]
sub ebx, dword [esp + 0x24]
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x579930
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
jmp 0x57993d
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x24]
add eax, ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x30], eax
push 1
lea eax, [esi + 0x470]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0055d540
mov ecx, eax
call fcn.0055d840
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 3]
push edx
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
mov ecx, edi
call sub.mfc90u.dll_CDC::ExcludeClipRect
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
inc ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
add edx, 3
dec ebx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
push edi
mov ecx, esi
call fcn.0055bf50
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 1
push 1
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
push 0
mov dword [esp + 0x40], eax
push 1
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0xfc]
inc eax
push 0xffffffffffffffff
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
call fcn.00523900
cmp eax, 0xffffffff
je 0x579a10
mov ebp, dword [ebp + 0xfc]
lea edx, [esp + 0x68]
push edx
push eax
mov ecx, ebp
call fcn.0045d5a0
mov ecx, eax
call fcn.00538b20
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x3c], eax
push 0
push 1
lea ecx, [esi + 0x490]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call fcn.0055d540
mov ecx, eax
call fcn.0055d840
mov eax, dword [esi + 0x558]
cmp eax, 0xffffffff
jne 0x579a40
mov esi, dword [esi + 0x554]
jmp 0x579a42
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
sub ecx, eax
push esi
sub ecx, 7
push ecx
push 1
add eax, 5
push eax
dec edx
push edx
jmp 0x579c67
push 0xf
mov ecx, esi
call fcn.0051c180
mov edi, dword [esp + 0xa8]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call sub.mfc90u.dll_CDC::FillSolidRect_1
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
test eax, eax
je 0x579b5c
push eax
lea ecx, [esp + 0x38]
call fcn.0055c8a0
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
call sub.mfc90u.dll_CWnd::ScreenToClient
mov ebx, dword [esp + 0x3c]
sub ebx, dword [esp + 0x34]
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x579ad0
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
jmp 0x579add
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x34]
add eax, ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x40], eax
push 1
lea eax, [esi + 0x470]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.0055d540
mov ecx, eax
call fcn.0055d840
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 3]
push ecx
push edx
push eax
mov ecx, edi
call sub.mfc90u.dll_CDC::ExcludeClipRect
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
dec eax
sub esp, 0x10
add ecx, 3
mov dword [esp + 0x94], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x94]
inc edx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
push edi
mov ecx, esi
call fcn.0055bf50
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 1
push 1
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
push 1
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0xfc]
inc eax
push 0xffffffffffffffff
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
call fcn.00523900
cmp eax, 0xffffffff
je 0x579bdd
mov ebp, dword [ebp + 0xfc]
test eax, eax
jl 0x579bb2
cmp eax, dword [ebp + 0x2c]
jge 0x579bb2
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + eax*4]
jmp 0x579bb4
xor eax, eax
mov edx, dword [eax + 0xb0]
mov ecx, dword [eax + 0xb4]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0xb8]
mov eax, dword [eax + 0xbc]
inc eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x30], eax
push 0
push 0
lea eax, [esi + 0x490]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0055d540
mov ecx, eax
call fcn.0055d840
mov eax, dword [esi + 0x4a8]
cmp eax, 0xffffffff
jne 0x579c0b
mov eax, dword [esi + 0x4a4]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x34]
sub edx, eax
sub edx, dword [esp + 0x1c]
lea edx, [edx + ecx - 2]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call sub.mfc90u.dll_CDC::FillSolidRect
mov eax, dword [esi + 0x558]
cmp eax, 0xffffffff
jne 0x579c4a
mov esi, dword [esi + 0x554]
jmp 0x579c4c
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
sub ecx, eax
push 1
sub ecx, 7
push ecx
dec edx
push edx
add eax, 5
push eax
mov ecx, edi
call sub.mfc90u.dll_CDC::FillSolidRect
push 0
mov ecx, edi
call sub.mfc90u.dll_CDC::SelectClipRgn
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8