Function at 0x59dee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e8628
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0x120]
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x60]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
mov ebp, eax
push ebp
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
xor ebx, ebx
xor edx, edx
mov dword [eax + 4], edx
lea esi, [ebx + 1]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x2c]
push ecx
call fcn.0059a290
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x134]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
add esp, 0x18
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x58]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xf4], vtable.CRgn.0
lea eax, [esp + 0xfc]
push eax
mov dword [esp + 0x118], ebx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0xf8]
call sub.mfc90u.dll_CGdiObject::Attach
push ebp
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, 1
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x3c]
push ecx
call fcn.0059a290
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add esp, 8
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], edx
push esi
mov dword [eax + 0xc], ecx
call fcn.0055d540
mov ecx, eax
call fcn.0055bf50
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebp
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xec], ecx
or ecx, 0xffffffff
mov dword [esp + 0xe8], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x100], edx
or edx, ecx
mov dword [eax + 4], edx
or ecx, ecx
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [eax + 0xc], ecx
lea eax, [esp + 0xf4]
push eax
call fcn.0059a290
mov eax, dword [esp + 0x50]
add esp, 0x18
cmp dword [eax + 0x28], ebx
je 0x59e22e
mov edx, dword [edi + 0x60]
cmp dword [edx + 4], edi
jne 0x59e1a0
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0xe8]
mov edx, dword [eax]
mov ecx, dword [esp + 0xe0]
mov edx, dword [edx + 0x18]
push edi
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xf8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xfc]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x100]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
push esi
call edx
mov eax, dword [edi + 0x60]
cmp dword [eax + 4], edi
je 0x59e141
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0xe8]
mov ecx, dword [eax + 0x4c]
cmp ecx, 0xffffffff
jne 0x59e0f7
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x4c]
cmp edx, 0xffffffff
jne 0x59e104
mov eax, dword [eax + 0x48]
jmp 0x59e106
mov eax, edx
push ecx
push eax
lea eax, [ebp + 2]
and eax, reloc.WS2_32.dll_closesocket
jns 0x59e117
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call fcn.0059ac30
add esp, 0x20
push ebp
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, 2
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0059a290
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0xe8]
mov ecx, dword [eax + 0x4c]
add esp, 0x18
cmp ecx, 0xffffffff
jne 0x59e180
mov eax, dword [eax + 0x48]
jmp 0x59e182
mov eax, ecx
mov edx, dword [esi + 4]
push eax
push edx
lea ecx, [esp + 0xe8]
call fcn.0055cce0
mov byte [esp + 0x114], 1
jmp 0x59e3bb
mov edx, dword [edx + 0x5c]
mov ecx, dword [edi + 0x2c]
dec edx
cmp ecx, edx
jge 0x59e418
cmp ebp, 2
je 0x59e1b8
cmp ebp, ebx
jne 0x59e1f3
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0xe8]
mov eax, dword [ecx + 0x4c]
cmp eax, 0xffffffff
jne 0x59e1cc
mov eax, dword [ecx + 0x48]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
sub eax, ecx
sub eax, 6
push eax
add ecx, 3
push 1
push ecx
mov ecx, dword [esp + 0x30]
dec ecx
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::FillSolidRect
jmp 0x59e418
mov edx, dword [eax + 0x1c]
mov ecx, dword [edx + 0xe8]
mov eax, dword [ecx + 0x4c]
cmp eax, 0xffffffff
jne 0x59e207
mov eax, dword [ecx + 0x48]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
push 1
sub eax, 6
push eax
mov eax, dword [esp + 0x30]
dec eax
add ecx, 3
push eax
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::FillSolidRect
jmp 0x59e418
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0xe8]
mov edx, dword [eax]
mov ecx, dword [esp + 0xe0]
mov edx, dword [edx + 0x18]
push edi
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xf8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xfc]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x100]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
push esi
call edx
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x24], ebx
je 0x59e2f5
mov ecx, dword [edi + 0x60]
cmp dword [ecx + 4], edi
jne 0x59e2ae
push ebp
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
lea edx, [esp + 0x2c]
mov ecx, 1
push edx
mov dword [eax + 0xc], ecx
call fcn.0059a290
mov eax, dword [esp + 0x50]
add esp, 0x18
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0xe8]
mov ecx, dword [eax + 0x4c]
cmp ecx, 0xffffffff
jne 0x59e2c2
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x4c]
cmp edx, 0xffffffff
jne 0x59e2e0
mov eax, dword [eax + 0x48]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::Draw3dRect_1
jmp 0x59e418
push ecx
mov eax, edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::Draw3dRect_1
jmp 0x59e418
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x38], 2
je 0x59e361
mov edx, dword [edi + 0x60]
cmp dword [edx + 4], edi
je 0x59e361
mov eax, dword [eax + 0xe8]
mov ecx, dword [eax + 0x4c]
cmp ecx, 0xffffffff
jne 0x59e317
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x4c]
cmp edx, 0xffffffff
jne 0x59e324
mov eax, dword [eax + 0x48]
jmp 0x59e326
mov eax, edx
push ecx
push eax
lea eax, [ebp + 2]
and eax, reloc.WS2_32.dll_closesocket
jns 0x59e337
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call fcn.0059ac30
add esp, 0x20
push ebp
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, 2
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0059a290
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0xe8]
mov ecx, dword [eax + 0x4c]
add esp, 0x18
cmp ecx, 0xffffffff
jne 0x59e3a0
mov eax, dword [eax + 0x48]
jmp 0x59e3a2
mov eax, ecx
mov edx, dword [esi + 4]
push eax
push edx
lea ecx, [esp + 0xe8]
call fcn.0055cce0
mov byte [esp + 0x114], 2
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 5
mov ecx, esi
call edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 6
push 6
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_RoundRect]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x59e3f8
xor eax, eax
jmp 0x59e3fb
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
push eax
push edx
call sub.mfc90u.dll_CDC::SelectGdiObject
lea ecx, [esp + 0xe0]
mov byte [esp + 0x114], bl
call fcn.0055cd70
lea eax, [esp + 0xf4]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::SelectClipRgn
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x24], ebx
je case.default.0x59e43d
cmp ebp, 3
ja case.default.0x59e43d
jmp dword [ebp*4 + 0x59e95c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
inc edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
add edx, 0xfffffffe
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x30]
dec edx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x28]
add edx, 2
mov dword [esp + 0x54], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x14]
add ecx, 2
or ebp, 0xffffffff
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xd4], ecx
push 0x14
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x40]
push ecx
add edx, 0xfffffffd
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd4], 1
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebp
call fcn.0055d540
mov ecx, eax
call fcn.0055d290
jmp 0x59e8f2
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [ebp + 1]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x34]
add ebp, 0xfffffffe
mov dword [esp + 0x40], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x44], eax
lea eax, [ecx + 1]
add ecx, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x2c]
or edx, 0xffffffff
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x2c]
inc ecx
inc ebp
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x84], ebp
mov ebp, dword [esp + 0x34]
add ecx, 2
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x34]
add ebp, 0xfffffffe
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x14]
add edx, 0xfffffffd
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x94], ebp
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xd4], edx
mov dword [esp + 0xdc], 1
jmp 0x59e88e
mov ebp, dword [esp + 0x34]
lea eax, [ebp - 2]
mov edx, dword [esp + 0x28]
dec ebp
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x30]
dec ebp
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x30]
add ebp, 0xfffffffe
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x34]
dec ebp
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x3c]
mov ecx, 1
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x40], edx
inc edx
add ebp, 2
mov dword [esp + 0x50], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x30]
add edx, 0xfffffffd
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xdc], ecx
add ebp, 0xfffffffd
push 0x14
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], edx
push ecx
jmp 0x59e8bf
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea ebp, [eax - 1]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x34]
add ebp, 0xfffffffe
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x74], ebp
add ebp, 0xfffffffe
lea edx, [ecx + 1]
mov dword [esp + 0x94], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x44], edx
mov dword [esp + 0x84], edx
add ebp, 0xfffffffd
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x2c]
add edx, 2
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xc0], ebp
mov ebp, dword [esp + 0x34]
add eax, 0xfffffffe
mov dword [esp + 0xb4], edx
lea edx, [ebp - 2]
mov dword [esp + 0x54], ecx
mov ecx, 1
add ebp, 0xfffffffd
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xbc], 0xffffffff
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xd0], eax
push 0x14
lea eax, [esp + 0x44]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x90], ebx
push eax
push esi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe4], ebx
call fcn.0055d540
mov ecx, eax
call fcn.0055d290
or ebp, 0xffffffff
mov ebx, dword [edi + 0x44]
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [edi + 0x48]
mov dword [eax + 4], ebx
mov ebx, dword [edi + 0x4c]
mov dword [eax + 8], ebx
mov ebx, dword [edi + 0x50]
push edi
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x68]
push esi
call eax
lea ecx, [esp + 0xf4]
mov dword [esp + 0x114], ebp
mov dword [esp + 0xf4], vtable.CRgn.0
call fcn.00401a60
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8