Function at 0x415610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476756
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x154]
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
xor ebx, ebx
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14c], ebx
mov eax, dword [ebp + 0x15c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x415698
push eax
mov eax, dword [esp + 0x15c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x15c]
mov ecx, dword [edx + 0x18]
cmp ecx, ebx
je 0x4156c1
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x4156c1
cmp dword [eax + 0x38], 0x10
jb 0x4156bc
mov eax, dword [eax + 0x24]
jmp 0x4156c3
add eax, 0x24
jmp 0x4156c3
xor eax, eax
lea ecx, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.00405070
mov byte [esp + 0x14c], 1
mov edx, dword [esp + 0x3c]
cmp edx, ebx
je 0x415701
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4156f0
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.0040c520
mov byte [esp + 0x14c], 0
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x415728
push eax
call fcn.00459f85
add esp, 4
mov ecx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov eax, dword [ecx - 0xc]
mov ebx, ecx
cmp eax, 0xffffffff
jne 0x415747
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
mov ebx, dword [esp + 0x164]
mov edx, dword [ebx]
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [ebp + 0x15c], edi
je 0x415774
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x4c]
call fcn.0041b240
mov edx, dword [ebp + 0x1c]
sub edx, dword [eax + 0x28]
mov eax, dword [esi]
add eax, dword [esp + 0x18]
cmp eax, edx
jle 0x4157aa
mov ecx, dword [ebp + 0x4c]
call fcn.0041b240
mov ecx, dword [eax + 0x28]
add ecx, dword [ebp + 0x14]
mov dword [esi], ecx
mov ecx, dword [ebp + 0x4c]
call fcn.0041b240
mov edx, dword [eax + 0x34]
add dword [esi + 4], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea edx, [eax + ecx]
mov ecx, dword [esi]
push edx
lea ebx, [ecx + edi]
push ebx
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp + 0x4c]
call fcn.0041b240
mov eax, dword [eax + 0x30]
add eax, dword [esp + 0x34]
mov edi, dword [esp + 0x15c]
add edi, 0x44
mov ebx, 0x47bebc
mov dword [esi], eax
call fcn.00423ab0
test eax, eax
je 0x415816
cmp dword [eax + 0x48], 0x10
jb 0x415800
mov eax, dword [eax + 0x34]
jmp 0x415803
add eax, 0x34
test eax, eax
je 0x415816
push eax
call fcn.0045ca43
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x41581e
mov dword [esp + 0x28], 0
mov ecx, dword [ebp + 0x190]
lea esi, [ebp + 0x18c]
push ecx
lea ebx, [esp + 0x28]
mov ecx, esi
call fcn.00415560
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x415841
mov dword [ecx], eax
jmp 0x415843
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 0x415871
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