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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10064f76
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x100a501c]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x130]
push ebx
xor esi, esi
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10059876
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x3c]
mov dword [esp + 0xdc], esi
mov esi, dword [ebp + 8]
push eax
push esi
call sym.DTLUI.dll_public:_static_void___cdecl_DuiLib::CRenderClip::GenerateClip_struct_HDC_____struct_tagRECT_const___class_DuiLib::CRenderClip__
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push ecx
push esi
mov ecx, edi
call sym.DTLUI.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::DoPaint_struct_HDC_____struct_tagRECT_const__
cmp byte [edi + 0xf9c], 0
je 0x1005923b
mov edx, dword [edi + 0xf10]
cmp word [edx], 0
je 0x1005923b
push 0
mov ecx, edi
call sym.DTLUI.dll_public:_long_int___thiscall_DuiLib::CRichEditUI::GetTextLength_unsigned_long_int_const
test eax, eax
jne 0x1005923b
mov eax, dword [ebx]
add eax, dword [edi + 0x748]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
add ecx, dword [edi + 0x74c]
sub edx, dword [edi + 0x750]
mov ebx, dword [ebx + 0xc]
sub ebx, dword [edi + 0x754]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xf98]
push eax
mov eax, dword [edi + 0xf10]
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x788]
push ecx
mov dword [esp + 0x58], edx
mov edx, dword [edi + 0xf94]
push edx
mov edx, dword [edi]
push eax
lea eax, [esp + 0x58]
push eax
mov eax, dword [edx + 0x1c]
mov ecx, edi
mov dword [esp + 0x68], ebx
call eax
push eax
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
mov dword [eax], esi
call sym.DTLUI.dll_public:_static_void___cdecl_DuiLib::CRenderEngine::DrawTextW_class_DuiLib::gdi::CDCT_0___class_DuiLib::CPaintManagerUI___struct_tagRECT___wchar_t_const___unsigned_long_int__int__unsigned_int_
add esp, 0x1c
jmp 0x100594ac
mov eax, dword [edi + 0x774]
test eax, eax
je 0x100594ac
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x2c]
mov ebx, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x30], eax
mov byte [esp + 0xd8], 2
mov edx, dword [esp + 0x20]
sub ebx, dword [esp + 0x1c]
sub edx, dword [esp + 0x18]
push esi
mov ecx, ebx
lea esi, [esp + 0x9c]
mov dword [esp + 0x18], edx
call fcn.10020330
mov esi, dword [esp + 0x30]
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push eax
push ebx
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xc4]
push 1
push edx
push eax
mov ecx, 0x100a5b50
call dword [0x100a5b54]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x774]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
mov ecx, dword [edx + 0xc]
xor edx, edx
cmp byte [edi + 0x175], dl
mov eax, dword [ecx]
setne dl
mov eax, dword [eax + 0x10]
dec edx
push edx
push 0
push 0
lea edx, [esp + 0x54]
push edx
push 0
push edx
push 0
push esi
push 0
push 0
push 0
push 1
call eax
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push ecx
push edx
mov ecx, 0x100a5b50
call dword [0x100a5b50]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x6c], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov edx, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x14]
push 2
push ebx
push edx
push 0
mov byte [esp + 0xe8], 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImagePointRectI
test eax, eax
je 0x100593cd
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x2c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x100593f4
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x100593f4
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x30]
cmp byte [edi + 0x778], 0
je 0x10059474
mov ecx, dword [edi + 0x768]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
add eax, dword [esp + 0x14]
mov edx, dword [edi]
mov dword [esp + 0x2c], eax
or eax, 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x774]
mov dword [esp + 0x28], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push 1
push 0
push 0
push eax
push 1
call edx
cmp dword [esp + 0x28], ebx
jg 0x10059474
mov ecx, edi
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CControlUI::NeedUpdate_void_
mov eax, dword [esp + 0x34]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdipDisposeImage
mov edx, dword [esp + 0x98]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [esp + 0xd8], 0
test esi, esi
je 0x100594a9
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [ebp + 8]
mov eax, dword [edi + 0x744]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
jle 0x100597a9
mov eax, dword [edi + 0x130]
mov ecx, dword [edi + 0x134]
mov edx, dword [edi + 0x138]
mov ebx, dword [edi + 0x13c]
add eax, dword [edi + 0x748]
add ecx, dword [edi + 0x74c]
sub edx, dword [edi + 0x750]
sub ebx, dword [edi + 0x754]
cmp dword [edi + 0x768], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
je 0x10059532
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x10059532
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
sub dword [esp + 0x20], eax
cmp dword [edi + 0x76c], 0
je 0x10059560
mov ecx, dword [edi + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x10059560
mov ecx, dword [edi + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
sub dword [esp + 0x24], eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x1005964a
mov ebx, dword [edi + 0x744]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
test ecx, 0xfffffffc
jle 0x100597a9
mov edx, dword [ebx + 0x10]
sub edx, dword [ebx + 0xc]
sar edx, 2
cmp dword [esp + 0x10], edx
jb 0x100595ad
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, dword [eax + ecx*4]
mov edx, dword [ebx]
mov eax, dword [edx + 0xe4]
mov ecx, ebx
call eax
test al, al
je 0x10059625
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10059625
mov eax, dword [ebx]
mov edx, dword [eax + 0x110]
mov ecx, ebx
call edx
test al, al
je 0x10059625
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
mov ecx, ebx
call edx
push eax
lea eax, [edi + 0x130]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10059625
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x134]
push eax
push esi
mov ecx, ebx
call edx
mov ebx, dword [edi + 0x744]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x10]
inc eax
sar ecx, 2
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10059598
jmp 0x100597a9
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x3c]
push eax
push esi
mov byte [esp + 0xe4], 5
call sym.DTLUI.dll_public:_static_void___cdecl_DuiLib::CRenderClip::GenerateClip_struct_HDC_____struct_tagRECT_const___class_DuiLib::CRenderClip__
mov ebx, dword [edi + 0x744]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
add esp, 0xc
mov dword [esp + 0x10], 0
test ecx, 0xfffffffc
jle 0x10059781
mov edx, dword [ebx + 0x10]
sub edx, dword [ebx + 0xc]
sar edx, 2
cmp dword [esp + 0x10], edx
jb 0x1005969a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, dword [eax + ecx*4]
mov edx, dword [ebx]
mov eax, dword [edx + 0xe4]
mov ecx, ebx
call eax
test al, al
je 0x10059761
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10059761
mov eax, dword [ebx]
mov edx, dword [eax + 0x110]
mov ecx, ebx
call edx
mov ecx, ebx
test al, al
je 0x10059734
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
call edx
push eax
lea eax, [edi + 0x130]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10059761
mov ecx, dword [esp + 0x78]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x134]
push eax
push esi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x74]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x10059761
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
call eax
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10059761
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov edx, dword [eax + 0x134]
push ecx
push esi
mov ecx, ebx
call edx
mov ebx, dword [edi + 0x744]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x10]
inc eax
sar ecx, 2
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10059685
mov byte [esp + 0xd8], 0
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
push ebx
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
mov eax, dword [esp + 0x74]
push eax
call ebx
cmp dword [edi + 0x768], 0
je 0x100597fb
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x100597fb
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov ebx, dword [ebp + 0xc]
push eax
push ebx
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x100597fe
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0x134]
push ebx
push esi
call eax
jmp 0x100597fe
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x76c], 0
je 0x1005984d
mov ecx, dword [edi + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1005984d
mov ecx, dword [edi + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
push eax
push ebx
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1005984d
mov edi, dword [edi + 0x76c]
mov edx, dword [edi]
mov eax, dword [edx + 0x134]
push ebx
push esi
mov ecx, edi
call eax
mov esi, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov edx, dword [esp + 0x90]
push edx
call esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8