Function at 0x4313c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d1630
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
mov al, byte [esi + ebp + 0x358]
test al, al
je 0x431613
mov eax, dword [esi]
push ebp
call dword [eax + 0xe0]
test al, al
je 0x431418
mov ecx, dword [0x657ce8]
pop esi
pop ebp
lea eax, [ecx + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push ebx
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ebx
jne 0x431427
xor eax, eax
jmp 0x43142a
mov eax, dword [esi + 0x1c]
push edi
push ebx
push ebx
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x677e28]
mov edi, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x34], ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005a5afe
cmp eax, ebx
je 0x431461
mov ebx, dword [eax + 4]
test edi, edi
je 0x431471
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x1c]
push 0xf00
push 0
push 0x102c
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x1c]
cmp eax, 0x100
sete byte [esp + 0x3c]
xor edi, edi
push edi
push edi
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x431552
mov al, byte [esp + 0x3c]
test al, al
je 0x4314c2
mov eax, dword [esi + 0x2d8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, esi
call fcn.00431630
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.0059d936
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 0
call fcn.0059d7fd
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
test eax, eax
je 0x43152e
push ebp
push edi
mov ecx, esi
call fcn.004313b0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add eax, edx
cmp ecx, eax
jg 0x43152e
push ebp
push edi
mov ecx, esi
call fcn.004313b0
add eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x1004
push eax
mov dword [esp + 0x34], 0
inc edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, eax
jl 0x4314ac
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call dword [edx + 0xd0]
cmp ebp, dword [esp + 0x18]
jge 0x431575
mov ecx, dword [eax + ebp*4]
push ecx
jmp 0x43157a
push 0x67f98c
lea ecx, [esp + 0x14]
call fcn.0059d986
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
test eax, eax
je 0x4315d4
push ebp
mov ecx, esi
call fcn.004313a0
mov edi, dword [0x657ce8]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add eax, edi
add eax, edx
cmp ecx, eax
jg 0x4315d4
push ebp
mov ecx, esi
call fcn.004313a0
mov edx, dword [0x657ce8]
mov ecx, dword [esp + 0x24]
add eax, edx
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
pop edi
test eax, eax
je 0x4315e5
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
lea esi, [eax + 1]
call fcn.0059d7fd
mov eax, esi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x24]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 4