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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
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 edx, dword [ebx + 0x130]
mov esi, dword [ebx + 0x134]
mov eax, dword [ebx + 0x138]
mov ecx, dword [ebx + 0x13c]
add edx, dword [ebx + 0x748]
add esi, dword [ebx + 0x74c]
sub eax, dword [ebx + 0x750]
sub ecx, dword [ebx + 0x754]
cmp dword [ebx + 0x768], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
je 0x1004b2dc
mov ecx, dword [ebx + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1004b2d8
mov ecx, dword [ebx + 0x768]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
sub dword [esp + 0x34], eax
mov ecx, dword [esp + 0x38]
cmp dword [ebx + 0x76c], 0
je 0x1004b316
mov ecx, dword [ebx + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1004b312
mov ecx, dword [ebx + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x1004b316
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
sub edi, dword [esp + 0x2c]
sub ecx, dword [esp + 0x30]
cmp dword [ebx + 0x76c], 0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
je 0x1004b359
mov ecx, dword [ebx + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1004b359
mov ecx, dword [ebx + 0x76c]
mov eax, dword [ecx + 0x744]
add eax, edi
mov dword [esp + 0x44], eax
mov edi, dword [ebx + 0x744]
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], esi
test edx, 0xfffffffc
jle 0x1004b4e1
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
cmp esi, eax
jb 0x1004b39a
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 0x1004b4c5
mov edx, dword [edi]
mov eax, dword [edx + 0x110]
mov ecx, edi
call eax
test al, al
jne 0x1004b4c5
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [edi]
mov edx, dword [edx + 0x130]
push eax
push ecx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0x10], 0
jne 0x1004b3f0
inc dword [esp + 0x40]
jmp 0x1004b434
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jge 0x1004b412
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jle 0x1004b434
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
mov ecx, edi
call edx
lea esi, [eax + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
mov ecx, edi
call edx
mov eax, dword [eax + 4]
add eax, dword [esi]
mov edx, dword [edi]
add eax, dword [esp + 0x10]
mov ecx, edi
add dword [esp + 0x18], eax
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov dword [esp + 0xc], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0xc], eax
jge 0x1004b48d
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0xc], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jle 0x1004b4b3
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x20], ecx
jg 0x1004b4bd
mov dword [esp + 0x20], ecx
inc dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
mov edi, dword [ebx + 0x744]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
inc esi
sar ecx, 2
cmp esi, ecx
mov dword [esp + 0x3c], esi
jl 0x1004b387
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0x758]
dec eax
imul edx, eax
add dword [esp + 0x18], edx
cmp dword [ebx + 0x794], 0
mov dword [esp + 0x6c], eax
je 0x1004b58c
mov eax, dword [ebx + 0x794]
lea ecx, [eax + 0x794]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x1004b58e
mov eax, dword [edi + 0x740]
mov edx, dword [eax + 0xc]
lea ecx, [edi + 0x740]
call edx
test eax, eax
jle 0x1004b58e
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov edx, dword [edi]
mov edx, dword [edx + 0x130]
push ecx
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, edi
call edx
cmp dword [eax], esi
jge 0x1004b561
mov dword [esp + 0x20], esi
jmp 0x1004b58e
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov edx, dword [edi]
mov edx, dword [edx + 0x130]
push ecx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jmp 0x1004b58e
xor esi, esi
mov ecx, dword [esp + 0x40]
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x58], esi
jle 0x1004b5b7
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x18]
cdq
idiv ecx
xor ecx, ecx
cmp eax, esi
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], edi
cmp dword [ebx + 0x768], esi
je 0x1004b5f3
mov ecx, dword [ebx + 0x768]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1004b5f3
mov eax, dword [ebx + 0x768]
sub edi, dword [eax + 0x748]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
cmp dword [ebx + 0x76c], esi
je 0x1004b627
mov ecx, dword [ebx + 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1004b627
mov ecx, dword [ebx + 0x76c]
sub edi, dword [ecx + 0x748]
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x64], edi
mov edi, dword [ebx + 0x744]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
xor esi, esi
mov byte [esp + 0x17], 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x18], esi
test eax, 0xfffffffc
jle 0x1004b9ce
lea esp, [esp]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
sar ecx, 2
cmp esi, ecx
jb 0x1004b673
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0xc]
mov edi, dword [edx + esi*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xe4]
mov ecx, edi
call edx
test al, al
je 0x1004b9b2
mov eax, dword [edi]
mov edx, dword [eax + 0x110]
mov ecx, edi
call edx
test al, al
je 0x1004b6af
mov eax, dword [ebx]
mov edx, dword [eax + 0x1e0]
push esi
mov ecx, ebx
call edx
jmp 0x1004b9b2
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
mov ecx, edi
call edx
mov edx, dword [edi]
mov edx, dword [edx + 0x130]
mov esi, eax
mov eax, dword [esp + 0x50]
sub eax, dword [esi + 4]
mov ecx, edi
push eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x14]
push eax
call edx
cmp dword [esp + 0x10], 0
jne 0x1004b75a
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
inc eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x40]
jne 0x1004b714
mov eax, dword [esp + 0x50]
sub eax, dword [esi + 0xc]
mov edx, 0
sub eax, dword [esp + 0x54]
sets dl
dec edx
and edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jge 0x1004b736
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jle 0x1004b7a6
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
jmp 0x1004b7a6
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jge 0x1004b77c
mov eax, dword [edi]
mov edx, dword [eax + 0x88]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x1004b7a2
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
mov ecx, eax
mov dword [esp + 0x10], ecx
sub dword [esp + 0x54], ecx
mov eax, dword [esp + 0x44]
sub eax, dword [esi + 8]
mov ecx, dword [esp + 0x20]
sub eax, dword [esi]
mov dword [esp + 0xc], ecx
cmp ecx, eax
jg 0x1004b7bf
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
cmp dword [esp + 0xc], eax
jge 0x1004b7db
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
cmp dword [esp + 0xc], eax
jle 0x1004b7fd
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
mov ecx, edi
call edx
test eax, eax
jle 0x1004b92e
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
mov ecx, edi
call edx
mov ecx, dword [ebx + 0x744]
mov edx, dword [ecx + 0x10]
sub edx, dword [ecx + 0xc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
inc eax
sar edx, 2
cmp eax, edx
mov dword [esp + 0x60], ecx
jge 0x1004b868
mov edx, dword [ecx + 0x10]
sub edx, dword [ecx + 0xc]
sar edx, 2
cmp eax, edx
jb 0x1004b84e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx + edx*4 + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
mov dword [esp + 0x5c], eax
cmp byte [esp + 0x17], 0
je 0x1004b894
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 0x758]
add ecx, eax
add ecx, dword [esp + 0x10]
add edx, eax
add edx, dword [esp + 0x10]
add dword [esp + 0x1c], ecx
sub dword [esp + 0x50], edx
mov byte [esp + 0x17], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
lea edx, [eax + ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x28]
add edx, ecx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x3c]
add eax, edx
add eax, dword [esp + 0x24]
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0xc]
add eax, ecx
add eax, dword [esp + 0x10]
mov ecx, edi
add eax, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push eax
call edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x64]
add eax, dword [esp + 0x24]
add edx, ecx
cmp eax, edx
jle 0x1004b91b
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
mov edx, ecx
add eax, dword [ebx + 0x758]
mov dword [esp + 0x24], edx
add eax, dword [esp + 0x10]
mov byte [esp + 0x17], 1
add dword [esp + 0x28], eax
jmp 0x1004b9ae
mov ecx, dword [ebx + 0x75c]
add ecx, dword [esp + 0x3c]
add dword [esp + 0x24], ecx
jmp 0x1004b9ae
mov eax, dword [esi]
mov edx, dword [esp + 0x24]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x80], ecx
mov ecx, dword [esi + 4]
add ecx, edx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xc]
add eax, ecx
add eax, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
add eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
push eax
call edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 0x758]
add ecx, eax
lea esi, [edx + ecx]
add esi, dword [esp + 0x10]
add edx, eax
add dword [esp + 0x28], esi
mov esi, dword [esp + 0x10]
add ecx, esi
add dword [esp + 0x1c], ecx
add edx, esi
sub dword [esp + 0x50], edx
mov esi, dword [esp + 0x18]
mov edi, dword [ebx + 0x744]
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
inc esi
sar edx, 2
cmp esi, edx
mov dword [esp + 0x18], esi
jl 0x1004b660
mov eax, dword [ebx + 0x758]
imul eax, dword [esp + 0x6c]
add dword [esp + 0x1c], eax
cmp dword [ebx + 0x76c], 0
je 0x1004bbf5
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x76c]
cmp dword [esp + 0x20], eax
jle 0x1004bb39
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
mov ecx, dword [ebx + 0x76c]
test al, al
je 0x1004ba69
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
cmp dword [ecx + 0x744], eax
je 0x1004bbf5
mov dword [ecx + 0x744], eax
test eax, eax
jge 0x1004ba42
mov dword [ecx + 0x744], 0
mov eax, dword [ecx + 0x744]
cmp dword [ecx + 0x748], eax
jle 0x1004ba56
mov dword [ecx + 0x748], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [ecx + 0x130]
push eax
call edx
jmp 0x1004bbf5
mov eax, dword [ecx]
mov edx, dword [eax + 0xe8]
push 1
call edx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x34]
mov ecx, dword [ebx + 0x76c]
add eax, dword [esp + 0x20]
cmp dword [ecx + 0x744], eax
je 0x1004bac5
mov dword [ecx + 0x744], eax
test eax, eax
jge 0x1004baa3
mov dword [ecx + 0x744], 0
mov eax, dword [ecx + 0x744]
cmp dword [ecx + 0x748], eax
jle 0x1004bab7
mov dword [ecx + 0x748], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [ecx + 0x130]
push edx
call eax
mov esi, dword [ebx + 0x76c]
cmp dword [esi + 0x748], 0
je 0x1004bb23
mov eax, dword [esi + 0x744]
mov dword [esi + 0x748], 0
test eax, eax
jge 0x1004baee
mov dword [esi + 0x748], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
lea eax, [esi + 0x130]
push eax
mov ecx, esi
call edx
mov ecx, dword [esi + 0x750]
test ecx, ecx
je 0x1004bb23
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push 0
push 0
push 0
push str.scroll
call edx
mov ecx, dword [esi + 0x18]
push eax
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov ecx, dword [ebx + 0x76c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
call edx
sub dword [esp + 0x38], eax
jmp 0x1004bbf5
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
test al, al
je 0x1004bbf5
mov ecx, dword [ebx + 0x76c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe8]
xor edi, edi
push edi
call edx
mov ecx, dword [ebx + 0x76c]
cmp dword [ecx + 0x744], edi
je 0x1004bb8e
cmp dword [ecx + 0x748], edi
mov dword [ecx + 0x744], edi
jle 0x1004bb80
mov dword [ecx + 0x748], edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [ecx + 0x130]
push edx
call eax
mov esi, dword [ebx + 0x76c]
cmp dword [esi + 0x748], edi
je 0x1004bbe4
mov eax, dword [esi + 0x744]
cmp eax, edi
mov dword [esi + 0x748], edi
jge 0x1004bbb2
mov dword [esi + 0x748], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
lea eax, [esi + 0x130]
push eax
mov ecx, esi
call edx
mov ecx, dword [esi + 0x750]
cmp ecx, edi
je 0x1004bbe4
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push edi
push edi
push edi
push str.scroll
call edx
mov ecx, dword [esi + 0x18]
push eax
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov ecx, dword [ebx + 0x76c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
call edx
add dword [esp + 0x38], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
push ecx
push edx
mov edx, dword [eax + 0x1e4]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4