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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call sym.DTLUI.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_class_DuiLib::CDuiRect_const__
mov eax, dword [ebx + 0x13c]
sub eax, dword [ebx + 0x754]
mov ecx, dword [ebx + 0x130]
add ecx, dword [ebx + 0x748]
mov edx, dword [ebx + 0x134]
mov esi, dword [ebx + 0x138]
add edx, dword [ebx + 0x74c]
sub esi, dword [ebx + 0x750]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x744]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], esi
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
jne 0x1003b859
push 0
push 0
lea eax, [esp + 0x60]
push eax
jmp 0x1003be37
mov ecx, dword [ebx + 0x768]
xor edi, edi
cmp ecx, edi
je 0x1003b884
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1003b884
mov ecx, dword [ebx + 0x768]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
sub dword [esp + 0x60], eax
mov ecx, dword [ebx + 0x76c]
cmp ecx, edi
je 0x1003b8ad
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1003b8ad
mov ecx, dword [ebx + 0x76c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
call edx
sub dword [esp + 0x64], eax
mov ecx, dword [ebx + 0x770]
cmp ecx, edi
jle 0x1003b8c8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
cdq
idiv ecx
mov dword [ebx + 0x778], eax
cmp dword [ebx + 0x778], edi
jne 0x1003b8da
mov dword [ebx + 0x778], 1
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov ecx, dword [ebx + 0x76c]
cdq
idiv dword [ebx + 0x778]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
cmp ecx, edi
je 0x1003b928
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1003b928
mov eax, dword [ebx + 0x76c]
mov eax, dword [eax + 0x744]
sub eax, dword [esp + 0x58]
add eax, dword [esp + 0x60]
cdq
idiv dword [ebx + 0x778]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x768]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x44], esi
cmp ecx, edi
je 0x1003b968
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1003b968
mov ecx, dword [ebx + 0x768]
sub esi, dword [ecx + 0x748]
mov dword [esp + 0x44], esi
mov ecx, dword [ebx + 0x76c]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x28], esi
cmp ecx, edi
je 0x1003b99c
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1003b99c
mov ecx, dword [ebx + 0x76c]
sub esi, dword [ecx + 0x748]
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], esi
mov eax, dword [ebx + 0x744]
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
xor esi, esi
mov dword [esp + 0x20], esi
test edx, 0xfffffffc
jle 0x1003be2c
lea ebx, [ebx]
mov edi, dword [ebx + 0x744]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
cmp esi, eax
jb 0x1003b9d9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
mov edi, dword [ecx + esi*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xe4]
mov ecx, edi
call eax
test al, al
je 0x1003be0e
mov edx, dword [edi]
mov eax, dword [edx + 0x110]
mov ecx, edi
call eax
test al, al
je 0x1003ba15
mov edx, dword [ebx]
mov eax, dword [edx + 0x1e0]
push esi
mov ecx, ebx
call eax
jmp 0x1003be0e
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], eax
mov eax, ecx
cdq
idiv dword [ebx + 0x778]
test edx, edx
jne 0x1003bc15
mov eax, dword [ebx + 0x744]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0x18], esi
sar ecx, 2
cmp esi, ecx
jge 0x1003bc15
mov esi, dword [ebx + 0x744]
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp dword [esp + 0x18], edx
jb 0x1003ba77
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xe4]
mov ecx, esi
mov dword [esp + 0x2c], esi
call eax
test al, al
je 0x1003bbf5
mov edx, dword [esi]
mov eax, dword [edx + 0x110]
mov ecx, esi
call eax
test al, al
jne 0x1003bbf5
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov esi, dword [esp + 0x70]
sub esi, dword [eax + 8]
mov dword [esp + 0x30], eax
sub esi, dword [eax]
mov eax, dword [esp + 0x1c]
sub esi, dword [esp + 0x40]
cmp eax, dword [esp + 0x10]
je 0x1003bae5
inc eax
cdq
idiv dword [ebx + 0x778]
test edx, edx
je 0x1003bae5
sub esi, dword [ebx + 0x758]
jmp 0x1003baf4
mov eax, dword [ebx + 0x758]
cdq
sub eax, edx
sar eax, 1
neg eax
add esi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp esi, eax
jge 0x1003bb0c
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov esi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp esi, eax
jle 0x1003bb2a
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov esi, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x130]
mov eax, 0x270f
push eax
push esi
lea eax, [esp + 0x50]
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
cmp dword [esp + 0x48], eax
jge 0x1003bb60
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x48], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
cmp dword [esp + 0x48], eax
jle 0x1003bb82
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov dword [esp + 0x48], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
cmp dword [esp + 0x4c], eax
jge 0x1003bba4
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jle 0x1003bbca
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
mov ecx, eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0xc]
add edx, dword [eax + 4]
lea eax, [edx + ecx]
cmp dword [esp + 0x14], eax
jg 0x1003bbe1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cdq
idiv dword [ebx + 0x778]
test edx, edx
je 0x1003bc15
mov eax, dword [ebx + 0x744]
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
inc ecx
sar edx, 2
cmp ecx, edx
mov dword [esp + 0x18], ecx
jl 0x1003ba5c
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
mov ecx, edi
call edx
mov ecx, eax
mov eax, dword [ebx + 0x758]
mov esi, dword [ecx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx + 8]
add ecx, eax
sub dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x778]
add esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
add esi, dword [esp + 0x40]
test edx, edx
jne 0x1003bc59
sub esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x2c], eax
cdq
idiv ecx
test edx, edx
jne 0x1003bc71
mov edx, dword [esp + 0x1c]
add dword [esp + 0x70], edx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
add edx, ecx
add eax, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x74], edx
sub edx, eax
sub ecx, esi
push edx
push ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x74], eax
mov eax, dword [edi]
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x130]
push ecx
mov ecx, edi
call edx
cmp dword [esp + 0x38], 0
jne 0x1003bcbe
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x3c], 0
jne 0x1003bccd
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x38], eax
jge 0x1003bce9
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x38], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x38], eax
jle 0x1003bd0b
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x38], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x88]
mov ecx, edi
call eax
cmp dword [esp + 0x3c], eax
jge 0x1003bd2d
mov edx, dword [edi]
mov eax, dword [edx + 0x88]
mov ecx, edi
call eax
mov dword [esp + 0x3c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x90]
mov ecx, edi
call eax
cmp dword [esp + 0x3c], eax
jle 0x1003bd4f
mov edx, dword [edi]
mov eax, dword [edx + 0x90]
mov ecx, edi
call eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x38]
add eax, esi
mov esi, dword [esp + 0x74]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
sub eax, dword [esp + 0x3c]
sar ecx, 1
add eax, dword [esp + 0x6c]
mov dword [esp + 0x78], ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
add ecx, edx
sar eax, 1
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
add eax, ecx
mov dword [esp + 0x84], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
cdq
idiv dword [ebx + 0x778]
test edx, edx
jne 0x1003bdd2
mov ecx, dword [ebx + 0x758]
add ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], edx
jmp 0x1003bdda
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], edx
sub esi, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x768]
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x1003be0a
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1003be0a
mov eax, dword [ebx + 0x768]
add esi, dword [eax + 0x748]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0x744]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
inc esi
sar ecx, 2
cmp esi, ecx
mov dword [esp + 0x20], esi
jl 0x1003b9c0
xor edi, edi
mov eax, dword [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x60]
push ecx
mov edx, dword [ebx]
mov edx, dword [edx + 0x1e4]
mov ecx, ebx
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4