Function at 0x404370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x439958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x2c]
push edi
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea ebx, [esi + 0x40]
mov ebp, 0x10
mov edx, ebx
mov dword [esp + 0x18], ebp
mov edi, ebp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov al, byte [esi + 0xb4]
test al, 2
mov dword [edx + 0xc], ecx
jne 0x404448
push esi
lea ecx, [esp + 0x44]
call fcn.004347cc
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push edx
mov dword [esp + 0x6c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00434a5f
push eax
lea ecx, [esp + 0x44]
call fcn.0043434d
mov eax, dword [esi + 0x11c]
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x5c], 0xffffffff
call fcn.0043483e
mov eax, ebp
cmp eax, 0x10
jge 0x404448
mov ebp, 0x10
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
add ebp, 0xb
sub ecx, edx
cmp ecx, ebp
jle 0x40446d
test byte [esi + 0xb4], 1
je 0x404466
add edx, ebp
mov dword [esi + 0x48], edx
jmp 0x40446d
mov eax, dword [esi + 0x48]
sub eax, ebp
mov dword [ebx], eax
mov ecx, dword [ebx]
push 0xfffffffffffffffe
mov dword [esp + 0x24], ecx
push 0xfffffffffffffffe
mov edx, dword [ebx + 4]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
mov eax, dword [ebx + 8]
push edx
mov dword [esp + 0x34], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea ebp, [esi + 0x50]
mov ebx, ebp
add eax, edx
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
lea eax, [ecx + edi]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x2c]
mov ebx, eax
sub ebx, ecx
cmp ebx, edi
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
jle 0x4044df
sub eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ebp
call ebx
mov edx, dword [esp + 0x20]
jmp 0x4044e2
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edi, eax
sub edi, edx
cmp edi, ecx
jle 0x404503
sub eax, edx
push 0
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
call ebx
jmp 0x404506
mov dword [esi + 0x58], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea edi, [esi + 0x60]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov al, byte [esi + 0xb4]
test al, 1
je 0x404537
mov ecx, dword [esi + 0x48]
mov dword [edi], ecx
jmp 0x40453d
mov edx, dword [esi + 0x40]
mov dword [esi + 0x68], edx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x404573
mov eax, dword [esi + 0x8c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404573
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
sub edx, eax
push 1
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x70]
call fcn.00430d3f
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4