Function at 0x430a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dffc6
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 [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
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 0x430ad8
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 0x430b01
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, esi
je 0x430b01
cmp dword [eax + 0x38], 0x10
jb 0x430afc
mov eax, dword [eax + 0x24]
jmp 0x430b03
add eax, 0x24
jmp 0x430b03
xor eax, eax
lea ecx, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.004150a0
mov byte [esp + 0x14c], 1
mov edx, dword [esp + 0x3c]
cmp edx, esi
jne 0x430b29
xor eax, eax
jmp 0x430b3f
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x430b30
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00401470
xor ebx, ebx
mov byte [esp + 0x14c], bl
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x430b69
push eax
call fcn.004b88b6
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 0x430b86
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 0x430bb3
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 0x430bd4
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, 0x4f3190
mov dword [edi], eax
mov edi, dword [esp + 0x15c]
add edi, 0x44
call fcn.00471700
cmp eax, ebx
je 0x430c33
cmp dword [eax + 0x48], 0x10
jb 0x430c1d
mov eax, dword [eax + 0x34]
jmp 0x430c20
add eax, 0x34
cmp eax, ebx
je 0x430c33
push eax
call fcn.004babe6
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x430c37
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.00427de0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x430c5a
mov dword [ecx], eax
jmp 0x430c5c
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 0x430c8a
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