Function at 0x502c30
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6071dc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x848
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x828], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x848], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
call eax
mov ecx, eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CDPI____thiscall_DuiLib::CPaintManagerUI::GetDPIObj_void_]
mov dword [ebp - 0x854], eax
test eax, eax
je 0x502cbe
cmp dword [0x6b8f7c], 0
je 0x502cbe
lea ecx, [ebx + 0x10]
push ecx
mov ecx, eax
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CDPI::ScaleBack_struct_tagRECT__]
xor eax, eax
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x858], eax
mov esi, dword [esi + 0x710]
mov eax, dword [esi + 0x924]
mov dword [ebp - 0x81c], eax
test eax, eax
je 0x502d3c
push 0x782
push 0
lea eax, [ebp - 0x7a8]
push eax
call fcn.00588800
add esp, 0xc
mov ecx, dword [esi + 0x91c]
sub ecx, 0x10
call fcn.0040c950
lea esi, [eax + 0x10]
mov dword [ebp - 0x82c], esi
mov dword [ebp - 4], 1
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x502d5e
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x502d3c
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
js 0x5034b8
movzx eax, word [esi]
mov ecx, 0x2e
cmp cx, ax
jne 0x502e45
mov byte [ebp - 4], 3
mov eax, dword [esi - 0xc]
dec eax
push eax
push 1
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x82c]
call fcn.004c6ec0
mov dword [ebp - 0x848], 1
mov edx, dword [eax]
lea edi, [edx - 0x10]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x834], ecx
cmp edi, ecx
je 0x502e0b
lea esi, [ecx + 0xc]
cmp dword [esi], 0
jl 0x502df6
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x502df6
mov ecx, edi
call fcn.0040c950
mov dword [ebp - 0x820], eax
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x502deb
mov esi, dword [ebp - 0x834]
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [ebp - 0x820]
lea esi, [eax + 0x10]
mov dword [ebp - 0x82c], esi
jmp 0x502e0e
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x82c]
call fcn.0040c9d0
mov esi, dword [ebp - 0x82c]
or edi, 0xffffffff
mov eax, 1
mov dword [ebp - 0x848], eax
and eax, 0xfffffffe
mov dword [ebp - 0x848], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x830]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x502e48
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x502e48
or edi, 0xffffffff
mov ecx, dword [ebp - 0x828]
mov eax, dword [ecx + 0x710]
mov ecx, dword [eax + 0x904]
mov dword [ebp - 0x820], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x7b0], xmm0
mov dword [ebp - 0x83c], 0
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0x818]
push edx
push ecx
call dword [eax + 0x30]
test eax, eax
je 0x502e9f
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x502d32
mov edi, dword [ebp - 0x810]
push edi
call fcn.00560596
add esp, 4
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x7ac]
push dword [ebp - 0x7b0]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x820]
mov eax, dword [ecx]
lea edx, [ebp - 0x83c]
push edx
push edi
mov edi, dword [ebp - 0x824]
push edi
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x502f0b
push dword [ebp - 0x83c]
mov edx, edi
lea ecx, [ebp - 0x82c]
call fcn.00503920
add esp, 4
mov esi, dword [ebp - 0x82c]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x834], eax
push 0
push 0
push 0
push 0
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push 0
push 0
push edi
lea eax, [ebp - 0x7a8]
push eax
push dword [ebp - 0x834]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc edi
cmp edi, 0x782
jae 0x5034b3
mov byte [ebp + edi - 0x7a8], 0
push ecx
mov dword [ebp - 0x838], esp
mov edi, esp
mov dword [ebp - 0x844], edi
lea ecx, [esi - 0x10]
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x81c]
call fcn.004d4630
mov dword [ebp - 0x81c], eax
test eax, eax
je 0x50347b
cmp dword [ebp - 0x83c], 0
je 0x50347b
xor ecx, ecx
mov dword [ebp - 0x830], ecx
push str.HasThumbnail
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x834], eax
push str.HasThumbnailBitmap
push dword [ebp - 0x81c]
call edi
mov dword [ebp - 0x820], eax
mov ecx, dword [ebp - 0x834]
test ecx, ecx
je 0x503003
cmp dword [ecx], 0
je 0x503003
push str.GetPreviewText
push dword [ebp - 0x81c]
call edi
mov dword [ebp - 0x830], eax
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x50327a
cmp dword [eax], 0
je 0x50327a
push str.GetPreviewBitmap
push dword [ebp - 0x81c]
call edi
test eax, eax
je 0x50327a
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x844], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x850]
push ecx
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x81c]
push ecx
push 0
push dword [ebp - 0x83c]
mov edi, dword [ebp - 0x824]
push edi
call eax
add esp, 0x18
mov dword [ebp - 0x84c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x503280
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x838], eax
test eax, eax
je 0x503280
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x7ac], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x5030f2
mov dword [edi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 0xb
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x820], 0
lea eax, [ebp - 0x820]
push eax
push 0
push dword [ebp - 0x838]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x820]
mov dword [edi + 4], eax
mov byte [ebp - 4], 0xa
jmp 0x5030fa
xor edi, edi
mov dword [ebp - 0x834], edi
mov byte [ebp - 4], 1
push dword [ebp - 0x81c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x81c], 0
test edi, edi
je 0x50327a
mov ecx, edi
call fcn.004fe980
mov dword [ebp - 0x838], eax
mov ecx, edi
call fcn.004fe9b0
mov edx, eax
test edx, edx
jle 0x50327a
mov ecx, dword [ebp - 0x838]
test ecx, ecx
jle 0x50327a
mov dword [ebp - 0x840], 1
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x10]
mov dword [ebp - 0x820], eax
cmp ecx, eax
jg 0x5031f2
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x14]
mov dword [ebp - 0x830], eax
cmp edx, eax
jg 0x5031f2
mov ecx, dword [ebp - 0x828]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CDPI____thiscall_DuiLib::CPaintManagerUI::GetDPIObj_void_]
mov dword [ebp - 0x838], eax
test eax, eax
je 0x5031cb
cmp dword [0x6b8f7c], 0
je 0x5031cb
push dword [ebp - 0x820]
mov ecx, eax
mov edi, dword [sym.imp.ycomuiu.dll_public:_int___thiscall_DuiLib::CDPI::Scale_int_]
call edi
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x838]
call edi
mov edi, dword [ebp - 0x834]
jmp 0x5031d1
mov eax, dword [ebp - 0x830]
push ecx
push eax
push dword [ebp - 0x820]
mov ecx, dword [ebp - 0x828]
mov ecx, dword [ecx + 0x710]
add ecx, 0x950
call fcn.004fe6c0
jmp 0x503205
push 1
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax + 0x710]
call fcn.00502280
push 0
push 0
push 0x431
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax + 0x710]
call dword [sym.imp.ycomuiu.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x828]
mov eax, dword [ecx + 0x710]
push 5
push dword [eax + 0x950]
call dword [sym.imp.USER32.dll_ShowWindow]
push ecx
push edi
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax + 0x710]
add ecx, 0x94c
call fcn.00535d90
jmp 0x50347b
mov edi, dword [ebp - 0x824]
mov eax, dword [ebp - 0x830]
test eax, eax
je 0x50347b
mov byte [ebp - 4], 0xc
push 0x782
lea ecx, [ebp - 0x7a8]
push ecx
push 0
push dword [ebp - 0x83c]
push edi
call eax
add esp, 0x14
mov dword [ebp - 0x84c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x50347b
lea ecx, [ebp - 0x7a8]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5032d0
sub ecx, edx
je 0x50347b
mov ecx, dword [ebp - 0x854]
test ecx, ecx
je 0x503323
cmp dword [0x6b8f7c], 0
je 0x503323
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x7b8]
push eax
call dword [sym.imp.ycomuiu.dll_public:_struct_tagRECT___thiscall_DuiLib::CDPI::Scale_struct_tagRECT_]
push eax
lea ecx, [ebp - 0x7cc]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CDuiRect::constructor_struct_tagRECT_const__]
movups xmm0, xmmword [ebp - 0x7c8]
movups xmmword [ebx + 0x10], xmm0
mov dword [ebp - 0x840], 1
lea ecx, [ebp - 0x81c]
call fcn.0040c490
mov byte [ebp - 4], 0xe
push 0x782
lea edx, [ebp - 0x7a8]
lea ecx, [ebp - 0x850]
call fcn.004deb80
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [eax]
lea edi, [edx - 0x10]
mov ecx, dword [ebp - 0x81c]
add ecx, 0xfffffff0
mov dword [ebp - 0x838], ecx
cmp edi, ecx
je 0x5033d4
lea eax, [ecx + 0xc]
mov dword [ebp - 0x854], eax
cmp dword [eax], 0
jl 0x5033c5
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x5033c5
mov ecx, edi
call fcn.0040c950
mov dword [ebp - 0x844], eax
or edi, 0xffffffff
mov ecx, edi
mov edx, dword [ebp - 0x854]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5033ba
mov eax, dword [ebp - 0x838]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x844]
add eax, 0x10
mov dword [ebp - 0x81c], eax
jmp 0x5033d7
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x81c]
call fcn.0040c9d0
or edi, 0xffffffff
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x850]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5033f8
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push 0x2010
push 5
push 0xff090909
push dword [ebp - 0x81c]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebp - 0x828]
push dword [eax + 0x128]
push dword [ebp - 0x85c]
call dword [sym.imp.ycomuiu.dll_public:_static_void___cdecl_DuiLib::CRenderEngine::DrawTextW_struct_HDC_____class_DuiLib::CPaintManagerUI___struct_tagRECT___wchar_t_const___unsigned_long_int__int__unsigned_int_]
add esp, 0x1c
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50347e
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50347e
or edi, 0xffffffff
push dword [ebp - 0x824]
call fcn.00560591
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x5034a8
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [ebp - 0x840]
jmp 0x502d3e
call fcn.0055faf0
push 0x80070057
call fcn.0040b250
int3