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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov edi, ecx
call sym.DTLUI.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_class_DuiLib::CDuiRect_const__
mov eax, dword [edi + 0x130]
mov ecx, dword [edi + 0x134]
mov ebx, dword [edi + 0x138]
mov esi, dword [edi + 0x13c]
add eax, dword [edi + 0x748]
add ecx, dword [edi + 0x74c]
sub ebx, dword [edi + 0x750]
sub esi, dword [edi + 0x754]
cmp dword [edi + 0x768], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
je 0x1003bfec
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1003bfec
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
mov edx, dword [edi]
sub dword [esp + 0x50], eax
mov eax, dword [edx + 0x190]
mov ecx, edi
call eax
test al, al
jne 0x1003bfec
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
sub ebx, eax
cmp dword [edi + 0x76c], 0
je 0x1003c039
mov ecx, dword [edi + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1003c039
mov ecx, dword [edi + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
mov edx, dword [edi]
sub dword [esp + 0x54], eax
mov eax, dword [edx + 0x190]
mov ecx, edi
call eax
test al, al
jne 0x1003c039
mov ecx, dword [edi + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
sub esi, eax
mov eax, dword [edi + 0x744]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
jne 0x1003c06b
mov edx, dword [edi]
mov edx, dword [edx + 0x1e4]
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sub ebx, dword [esp + 0x58]
sub esi, dword [esp + 0x5c]
cmp dword [edi + 0x76c], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
je 0x1003c0aa
mov ecx, dword [edi + 0x76c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1003c0aa
mov eax, dword [edi + 0x76c]
mov eax, dword [eax + 0x744]
add eax, ebx
mov dword [esp + 0x38], eax
mov esi, dword [edi + 0x744]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
test eax, 0xfffffffc
jle 0x1003c1d2
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ebx, ecx
jb 0x1003c0ea
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0xc]
mov esi, dword [edx + ebx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0xe4]
mov ecx, esi
call edx
test al, al
je 0x1003c1ae
mov eax, dword [esi]
mov edx, dword [eax + 0x110]
mov ecx, esi
call edx
test al, al
jne 0x1003c1ae
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
push edx
mov edx, dword [eax + 0x130]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x34], 0
jne 0x1003c140
inc dword [esp + 0x10]
jmp 0x1003c184
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
mov ecx, esi
call edx
cmp dword [esp + 0x34], eax
jge 0x1003c162
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
mov ecx, esi
call edx
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
cmp dword [esp + 0x34], eax
jle 0x1003c184
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
mov ecx, esi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
mov ecx, esi
call edx
mov eax, dword [eax + 4]
add eax, dword [ebx]
mov ebx, dword [esp + 0x1c]
add eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
inc dword [esp + 0x18]
mov esi, dword [edi + 0x744]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
inc ebx
sar ecx, 2
cmp ebx, ecx
mov dword [esp + 0x1c], ebx
jl 0x1003c0d7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 0x758]
dec eax
imul esi, eax
add edx, esi
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
jle 0x1003c20b
mov eax, dword [esp + 0x3c]
sub eax, edx
cdq
idiv ecx
xor edx, edx
cmp eax, esi
setl dl
dec edx
and edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x768], esi
je 0x1003c24b
mov ecx, dword [edi + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1003c24b
mov ecx, dword [edi + 0x768]
mov eax, dword [esp + 0x5c]
sub eax, dword [ecx + 0x748]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x76c], 0
mov edx, dword [esp + 0x58]
mov dword [esp + 0x18], edx
je 0x1003c284
mov ecx, dword [edi + 0x76c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1003c284
mov ecx, dword [edi + 0x76c]
mov eax, dword [esp + 0x58]
sub eax, dword [ecx + 0x748]
mov dword [esp + 0x18], eax
mov esi, dword [edi + 0x744]
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], ebx
test edx, 0xfffffffc
jle 0x1003c47d
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x1003c2b5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xc]
mov esi, dword [ecx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xe4]
mov ecx, esi
call eax
test al, al
je 0x1003c461
mov edx, dword [esi]
mov eax, dword [edx + 0x110]
mov ecx, esi
call eax
test al, al
je 0x1003c2f1
mov edx, dword [edi]
mov eax, dword [edx + 0x1e0]
push ebx
mov ecx, edi
call eax
jmp 0x1003c461
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x130]
mov ebx, eax
mov eax, dword [esp + 0x44]
sub eax, dword [ebx + 4]
mov ecx, esi
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
call edx
cmp dword [esp + 0x34], 0
mov ecx, esi
jne 0x1003c32f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x88]
call eax
cmp dword [esp + 0x34], eax
jge 0x1003c34f
mov edx, dword [esi]
mov eax, dword [edx + 0x88]
mov ecx, esi
call eax
mov dword [esp + 0x34], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
cmp dword [esp + 0x34], eax
jle 0x1003c371
mov edx, dword [esi]
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
mov dword [esp + 0x34], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
mov ecx, esi
call eax
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1003c391
mov eax, dword [esp + 0x38]
sub eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp + 0x30], eax
test eax, eax
jge 0x1003c39b
mov dword [esp + 0x30], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
cmp dword [esp + 0x30], eax
jge 0x1003c3b7
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
mov dword [esp + 0x30], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jle 0x1003c3dd
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x34]
add eax, edx
mov edx, dword [ebx]
add eax, dword [esp + 0x10]
add ecx, edx
add ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 4]
add ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx]
add ecx, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 0x758]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
add esi, edx
add ecx, eax
add esi, ecx
add dword [esp + 0x10], esi
mov esi, dword [esp + 0x34]
add ecx, esi
add dword [esp + 0x14], ecx
add esi, edx
add esi, eax
sub dword [esp + 0x44], esi
mov esi, dword [edi + 0x744]
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
inc ebx
sar edx, 2
cmp ebx, edx
mov dword [esp + 0x20], ebx
jl 0x1003c2a2
mov ecx, dword [edi + 0x758]
imul ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov eax, dword [eax + 0x1e4]
push ecx
push 0
lea edx, [esp + 0x50]
push edx
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4