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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0x18], edi
call sym.DTLUI.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_class_DuiLib::CDuiRect_const__
mov ecx, dword [edi + 0x138]
sub ecx, dword [edi + 0x750]
mov esi, dword [edi + 0x744]
mov eax, dword [edi + 0x134]
mov edx, dword [edi + 0x13c]
mov ebx, dword [edi + 0x130]
add eax, dword [edi + 0x74c]
sub edx, dword [edi + 0x754]
add ebx, dword [edi + 0x748]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], 0
test ecx, 0xfffffffc
jle 0x1003b546
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp dword [esp + 0x10], edx
jb 0x1003b39c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xe4]
mov ecx, esi
call eax
test al, al
je 0x1003b529
mov edx, dword [esi]
mov eax, dword [edx + 0x110]
mov ecx, esi
call eax
test al, al
mov eax, dword [esp + 0x10]
je 0x1003b3e0
mov edx, dword [edi]
mov edx, dword [edx + 0x1e0]
push eax
mov ecx, edi
call edx
jmp 0x1003b529
cmp eax, dword [edi + 0x770]
jne 0x1003b529
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov ecx, dword [eax + 4]
add dword [esp + 0x24], ecx
add ebx, dword [eax]
mov edi, dword [esp + 0x28]
sub edi, dword [eax + 8]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x130]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edi
sub edi, ebx
mov ebx, ecx
sub ebx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push ebx
push edi
mov dword [esp + 0x34], ecx
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x18], 0
jne 0x1003b448
xor eax, eax
test edi, edi
setl al
dec eax
and eax, edi
mov dword [esp + 0x18], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
cmp dword [esp + 0x18], eax
jge 0x1003b464
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
mov dword [esp + 0x18], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
cmp dword [esp + 0x18], eax
jle 0x1003b486
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
jne 0x1003b49b
xor ecx, ecx
test ebx, ebx
setl cl
dec ecx
and ecx, ebx
mov dword [esp + 0x1c], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x88]
mov ecx, esi
call eax
cmp dword [esp + 0x1c], eax
jge 0x1003b4bd
mov edx, dword [esi]
mov eax, dword [edx + 0x88]
mov ecx, esi
call eax
mov dword [esp + 0x1c], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
mov edx, dword [esp + 0x1c]
cmp edx, eax
jle 0x1003b4e3
mov edx, dword [esi]
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
mov edx, eax
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
add ecx, edx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
push ecx
lea edx, [esp + 0x44]
add eax, edi
push edx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call edx
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x744]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc dword [esp + 0x10]
sar eax, 2
cmp dword [esp + 0x10], eax
jl 0x1003b387
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4