Function at 0x417ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a5ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x154]
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
mov ecx, 0x4da734
call edx
xor esi, esi
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x14c], esi
mov eax, dword [ebp + 0x194]
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x417d68
push eax
mov eax, dword [esp + 0x15c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x15c]
mov ecx, dword [edx + 0x18]
cmp ecx, esi
je 0x417d91
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, esi
je 0x417d91
cmp dword [eax + 0x38], 0x10
jb 0x417d8c
mov eax, dword [eax + 0x24]
jmp 0x417d93
add eax, 0x24
jmp 0x417d93
xor eax, eax
push 0xfde9
lea ecx, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
call fcn.0040cbf0
mov byte [esp + 0x14c], 1
mov edx, dword [esp + 0x3c]
cmp edx, esi
jne 0x417dbe
xor eax, eax
jmp 0x417dd2
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x417dc3
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.0040cfc0
xor ebx, ebx
mov byte [esp + 0x14c], bl
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x417dfc
push eax
call fcn.00489176
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
mov esi, ecx
jne 0x417e19
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
mov esi, dword [esp + 0x164]
mov edx, dword [esi]
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [ebp + 0x194], ebx
je 0x417e46
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0x54]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edi]
mov esi, dword [esp + 0x1c]
sub edx, eax
add ecx, esi
cmp ecx, edx
jle 0x417e67
mov edx, dword [ebp + 0x14]
add edx, eax
mov dword [edi], edx
mov eax, dword [ebp + 0x60]
add dword [edi + 4], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx]
mov ecx, dword [edi]
push edx
add esi, ecx
push esi
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x5c]
add eax, dword [esp + 0x34]
push 0x4b6a60
mov dword [edi], eax
mov edi, dword [esp + 0x160]
add edi, 0x44
call fcn.00481582
cmp eax, ebx
je 0x417ec6
cmp dword [eax + 0x48], 0x10
jb 0x417eb0
mov eax, dword [eax + 0x34]
jmp 0x417eb3
add eax, 0x34
cmp eax, ebx
je 0x417ec6
push eax
call fcn.00489b56
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x417eca
mov dword [esp + 0x28], ebx
mov ecx, dword [ebp + 0x1c8]
lea esi, [ebp + 0x1c4]
push ecx
lea ebx, [esp + 0x28]
mov ecx, esi
call fcn.00443010
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x417eed
mov dword [ecx], eax
jmp 0x417eef
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esp + 0x14c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417f1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 0xc