Function at 0x414080
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2b48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e70ac]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 0x40], ebx
xor ebp, ebp
push 0x11
mov dword [esp + 0x74], ebp
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
mov dword [esp + 0x30], eax
xor eax, eax
push 2
push ecx
lea edi, [esi + 0xf0]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x30], esp
mov dword [eax], ebx
call fcn.00411b70
push edi
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x30], esp
mov dword [eax], ebx
call fcn.004119a0
push 3
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x30], esp
mov dword [eax], ebx
call fcn.00411b70
push edi
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x30], esp
mov dword [eax], ebx
call fcn.004119a0
push 1
push ecx
mov eax, esp
mov dword [esi + 0x100], ebp
mov ecx, esi
mov dword [esp + 0x30], esp
mov dword [eax], ebx
call fcn.00411b70
mov eax, str.SMTWF
mov dword [esp + 0x1c], ebp
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x414160
sub eax, ecx
sar eax, 1
je 0x4141e5
mov dword [esp + 0x18], str.SMTWF
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 1
push ecx
push ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jle 0x4141a0
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esi + 0x100]
cmp ecx, eax
jbe 0x4141b2
mov eax, ecx
inc dword [esp + 0x1c]
add dword [esp + 0x18], 2
mov dword [esi + 0x100], eax
mov eax, str.SMTWF
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4141d0
sub eax, edx
sar eax, 1
cmp dword [esp + 0x1c], eax
jb 0x414179
mov ecx, dword [esi + 0xe8]
mov edi, dword [edi]
add edi, ecx
lea eax, [edi*8]
sub eax, edi
add eax, ecx
push ebp
push ecx
mov dword [esp + 0x30], eax
mov eax, esp
mov dword [esi + 0xf8], ebp
mov dword [esi + 0xfc], ebp
mov ecx, esi
mov dword [esp + 0x2c], esp
mov dword [eax], ebx
call fcn.00411b70
call fcn.0041bd92
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x414235
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x70], 1
mov dword [esp + 0x20], 0x7c6
mov dword [esp + 0x18], 1
jmp 0x414272
xor ebp, ebp
mov dword [esp + 0x18], 1
jmp 0x414272
xor ebp, ebp
mov cx, word [esp + 0x20]
mov dx, word [esp + 0x18]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov word [esp + 0x54], cx
xor ecx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov word [esp + 0x56], dx
xor edx, edx
mov word [esp + 0x5c], cx
mov eax, 1
lea ecx, [esp + 0x48]
mov word [esp + 0x5e], dx
mov word [esp + 0x5a], ax
push ecx
lea edx, [esp + 0x58]
xor eax, eax
push edx
mov word [esp + 0x68], ax
call fcn.00407000
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x50], eax
push str._Y__m
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
call fcn.00413bc0
mov eax, dword [eax]
lea edi, [eax - 0x10]
lea ebp, [ebx - 0x10]
mov byte [esp + 0x70], 2
cmp edi, ebp
je 0x41439c
cmp dword [ebp + 0xc], 0
jl 0x41438a
mov ecx, dword [edi]
cmp ecx, dword [ebp]
jne 0x41438a
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x41432c
cmp eax, dword [edi]
jne 0x41432c
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x414367
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4144de
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00435b6f
add esp, 0x10
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414381
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x41439c
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00404240
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x70], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx - 0xc]
cmp eax, 0xffffffff
jne 0x4143da
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x38]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esi + 0xf8]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jbe 0x4143fc
mov eax, ecx
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0xf8], eax
cmp edx, ecx
jbe 0x414412
mov ecx, edx
mov edx, dword [esp + 0x18]
inc edx
cmp edx, 0xc
mov dword [esi + 0xfc], ecx
mov dword [esp + 0x18], edx
jle 0x414270
mov edx, dword [esp + 0x20]
inc edx
cmp edx, 0x7e4
mov dword [esp + 0x20], edx
jl 0x414260
mov edi, dword [esp + 0x28]
lea edx, [ecx + 6]
lea ecx, [eax + 0x1e]
lea eax, [edi + 0xc]
cmp ecx, eax
mov dword [esi + 0xfc], edx
jle 0x414458
mov eax, ecx
mov ecx, dword [esi + 0xf4]
add ecx, dword [esi + 0xec]
mov dword [esi + 0xe0], eax
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*2]
mov ecx, dword [esi + 0x100]
sub eax, edi
lea edx, [edx + ecx + 4]
mov dword [esi + 0xe4], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x104], eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
add ebx, 0xfffffff0
mov byte [esp + 0x70], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4144be
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x34]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004016d0
int3