Function at 0x4309d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e0196
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
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 [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
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 + 0x198]
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x430a58
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 0x430a81
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, esi
je 0x430a81
cmp dword [eax + 0x38], 0x10
jb 0x430a7c
mov eax, dword [eax + 0x24]
jmp 0x430a83
add eax, 0x24
jmp 0x430a83
xor eax, eax
lea ecx, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.00414fc0
mov byte [esp + 0x14c], 1
mov edx, dword [esp + 0x3c]
cmp edx, esi
jne 0x430aa9
xor eax, eax
jmp 0x430abf
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x430ab0
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00401450
xor ebx, ebx
mov byte [esp + 0x14c], bl
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x430ae9
push eax
call fcn.004b89a6
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 0x430b06
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 + 0x198], ebx
je 0x430b33
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 0x430b54
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]
mov esi, 0x4f31a0
mov dword [edi], eax
mov edi, dword [esp + 0x15c]
add edi, 0x44
call fcn.004716f0
cmp eax, ebx
je 0x430bb3
cmp dword [eax + 0x48], 0x10
jb 0x430b9d
mov eax, dword [eax + 0x34]
jmp 0x430ba0
add eax, 0x34
cmp eax, ebx
je 0x430bb3
push eax
call fcn.004baca8
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x430bb7
mov dword [esp + 0x28], ebx
mov ecx, dword [ebp + 0x1cc]
lea esi, [ebp + 0x1c8]
push ecx
lea ebx, [esp + 0x28]
mov ecx, esi
call fcn.00427b80
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x430bda
mov dword [ecx], eax
jmp 0x430bdc
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 0x430c0a
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