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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x754]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x750]
add eax, dword [esi + 0x74c]
xor ebx, ebx
add eax, dword [esi + 0x510]
push edi
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x838]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
je 0x461292
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x44], ecx
push ebx
push ebx
push ebx
push 0x601488
call dword [sym.imp.GDI32.dll_CreateICW]
mov edi, dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CSize::constructor_int__int_]
push ebx
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call edi
push ebx
push ebx
lea ecx, [esp + 0x44]
call edi
push ebx
push ebx
lea ecx, [esp + 0x50]
call edi
push ebx
push ebx
lea ecx, [esp + 0x38]
call edi
xor eax, eax
xor edx, edx
mov word [esp + 0x78], dx
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov word [esp + 0x8a], ax
mov word [esp + 0x64], ax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov word [esp + 0x76], ax
call fcn.004058e0
mov ecx, eax
call fcn.00419610
mov ecx, eax
call fcn.0044dd90
mov dword [esp + 0x60], eax
call fcn.004058e0
mov ecx, eax
call fcn.00419610
mov ecx, eax
call fcn.0044dda0
mov dword [esp + 0x50], eax
call fcn.004058e0
mov ecx, eax
call fcn.00419610
mov ecx, eax
call fcn.0044ddb0
cmp dword [esi + 0x758], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], ebx
jle 0x46193f
xor edi, edi
jmp 0x461366
xor ebx, ebx
mov esi, dword [esi + 0x75c]
cmp esi, ebx
je 0x46194a
mov ecx, dword [esi + edi + 0xc]
cmp ecx, dword [esp + 0x60]
jne 0x461397
mov edx, dword [esi + edi + 0x10]
cmp edx, dword [esp + 0x50]
jne 0x461397
mov eax, dword [esp + 0x5c]
cmp dword [esi + edi + 0x14], eax
jne 0x461397
mov byte [esi + edi + 7], 1
cmp byte [esi + edi + 9], 0
jne 0x4613b9
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 7
mov dword [esp + 0x18], eax
jl 0x461920
mov dword [esp + 0x18], ebx
jmp 0x46191c
mov eax, dword [esi + edi + 0x14]
lea ecx, [esi + edi + 0x44]
push eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x7c]
lea edx, [esi + edi + 0x74]
push 0x5fd170
push ecx
mov dword [esp + 0x30], edx
call fcn.00403b80
mov eax, dword [esi + edi + 0x20]
lea edx, [eax + eax*4]
lea eax, [edx*2 + 0x609166]
push eax
lea ecx, [esp + 0x74]
push 0x6012d8
push ecx
call fcn.00403b80
lea eax, [esp + 0x90]
add esp, 0x18
lea ecx, [eax + 2]
jmp 0x461410
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x461410
sub eax, ecx
sar eax, 1
push eax
lea edx, [esp + 0x7c]
lea ecx, [esi + edi + 0x84]
push edx
call fcn.00401c70
mov ecx, 0x5fd280
lea eax, [esp + 0x64]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x461466
cmp dx, bx
je 0x461462
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x461466
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x461440
xor eax, eax
jmp 0x46146b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4614df
mov eax, dword [esi + edi + 0x1c]
lea eax, [eax + eax*4]
lea ecx, [eax*2 + 0x609296]
push ecx
lea edx, [esp + 0x68]
push 0x6012d8
push edx
call fcn.00403b80
lea eax, [esp + 0x70]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x461497
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
lea ebx, [esi + edi + 0xa0]
push eax
mov ecx, ebx
call fcn.00401c70
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4614c1
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [esi + edi + 0x164]
jmp 0x461504
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4614e6
sub eax, edx
sar eax, 1
lea ebx, [esi + edi + 0xa0]
push eax
lea edx, [esp + 0x68]
push edx
mov ecx, ebx
call fcn.00401c70
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x800]
add ecx, dword [eax + 0x7f8]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x54]
mov dword [esi + edi + 0x34], ecx
mov edx, dword [eax + 0x7fc]
add edx, dword [eax + 0x804]
imul edx, dword [esp + 0x20]
add edx, dword [esp + 0x58]
mov dword [esi + edi + 0x38], edx
mov ecx, dword [eax + 0x7f8]
add ecx, dword [esi + edi + 0x34]
mov dword [esi + edi + 0x3c], ecx
mov edx, dword [eax + 0x7fc]
add edx, dword [esi + edi + 0x38]
mov ecx, dword [esp + 0x14]
add edx, dword [eax + 0x804]
mov dword [esi + edi + 0x40], edx
mov eax, dword [eax + 0x784]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + edi + 0x9c], 8
mov eax, dword [esi + edi + 0x98]
jb 0x46158d
mov ecx, dword [esi + edi + 0x88]
jmp 0x461594
lea ecx, [esi + edi + 0x88]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esi + edi + 0x34]
mov ecx, dword [esp + 0x10]
add eax, 0xa
mov dword [ecx], eax
mov edx, dword [esp + 0x28]
add eax, edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x7fc]
sub eax, dword [esp + 0x44]
cdq
sub eax, edx
mov edx, dword [esi + edi + 0x38]
sar eax, 1
lea eax, [eax + edx - 8]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x788]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x18], 8
mov eax, dword [esi + edi + 0xb4]
jb 0x46160b
mov ecx, dword [ebx + 4]
jmp 0x46160e
lea ecx, [ebx + 4]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [ebx + 0x18], 8
jb 0x46162b
mov eax, dword [ebx + 4]
jmp 0x46162e
lea eax, [ebx + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461631
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x46165b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
add eax, 0xfffffffc
mov dword [esi + edi + 0x54], eax
mov edx, dword [esp + 0x3c]
lea eax, [eax + edx*2]
jmp 0x4616b3
cmp dword [ebx + 0x18], 8
jb 0x461666
mov ebx, dword [ebx + 4]
jmp 0x461669
add ebx, 4
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461670
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x4616b7
mov ecx, dword [esp + 0x3c]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
sub edx, eax
lea eax, [edx - 4]
mov dword [esi + edi + 0x54], eax
mov ecx, dword [esp + 0x3c]
lea eax, [eax + ecx*2]
add eax, ecx
mov dword [esi + edi + 0x5c], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x2c]
lea eax, [edx + eax - 4]
mov dword [esi + edi + 0x58], eax
mov ecx, dword [esp + 0x40]
add eax, ecx
mov dword [esi + edi + 0x60], eax
cmp dword [esi + edi + 0x140], 0
je 0x4617f6
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x78c]
mov ebx, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + edi + 0x144], 8
mov eax, dword [esi + edi + 0x140]
jb 0x461712
mov ecx, dword [esi + edi + 0x130]
jmp 0x461719
lea ecx, [esi + edi + 0x130]
lea edx, [esp + 0x48]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ebx, 8
cmp dword [esi + edi + 0x144], ebx
jb 0x46173e
mov eax, dword [esi + edi + 0x130]
jmp 0x461745
lea eax, [esi + edi + 0x130]
lea edx, [eax + 2]
jmp 0x461750
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461750
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x461779
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
add eax, 0xfffffffc
mov dword [esi + edi + 0x64], eax
mov ecx, dword [esp + 0x48]
add eax, ecx
jmp 0x4617d5
cmp dword [esi + edi + 0x144], ebx
jb 0x46178b
mov eax, dword [esi + edi + 0x130]
jmp 0x461792
lea eax, [esi + edi + 0x130]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461795
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x4617d9
mov ecx, dword [esp + 0x48]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
sar eax, 1
sub ecx, eax
lea eax, [ecx - 4]
mov dword [esi + edi + 0x64], eax
mov edx, dword [esp + 0x48]
add eax, edx
mov dword [esi + edi + 0x6c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + edx - 4]
mov dword [esi + edi + 0x68], eax
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov dword [esi + edi + 0x70], eax
cmp dword [esi + edi + 0x15c], 0
je 0x461906
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x790]
mov ebx, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + edi + 0x160], 8
mov eax, dword [esi + edi + 0x15c]
lea esi, [esi + edi + 0x148]
jb 0x461837
mov ecx, dword [esi + 4]
jmp 0x46183a
lea ecx, [esi + 4]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ebx, 8
cmp dword [esi + 0x18], ebx
jb 0x461857
mov eax, dword [esi + 4]
jmp 0x46185a
lea eax, [esi + 4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461860
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x46188e
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
lea ecx, [eax - 4]
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
add ecx, edx
mov dword [eax + 8], ecx
jmp 0x4618eb
cmp dword [esi + 0x18], ebx
jb 0x461898
mov eax, dword [esi + 4]
jmp 0x46189b
lea eax, [esi + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4618a0
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x4618e7
mov ecx, dword [esp + 0x30]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x24]
add ecx, 0xfffffffc
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
add ecx, edx
mov dword [eax + 8], ecx
jmp 0x4618eb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x2c]
lea ecx, [edx + ecx - 4]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x34]
add ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 7
mov dword [esp + 0x18], eax
jl 0x461920
mov dword [esp + 0x18], 0
inc dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
inc eax
add edi, 0x180
cmp eax, dword [esi + 0x758]
mov dword [esp + 0x38], eax
jl 0x461364
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e8c89
mov esp, ebp
pop ebp
ret