Function at 0x411ce7
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x58
mov eax, dword [0x514d34]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
mov ebx, dword [esp + 0x60]
xorps xmm0, xmm0
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
mov dword [esp + 0x14], esi
movups xmmword [esp + 0x1c], xmm0
call fcn.0040fcb6
xor edi, edi
mov dword [ebx + 0x30], 0x401
test byte [ebx + 0x2e], 0x10
je 0x411d4d
mov eax, dword [ebx + 0xe]
mov ebp, edi
mov dword [ebx + 0x30], 0x400
mov dword [ebx + 0x26], 0x40000000
mov dword [esp + 0x10], edi
test byte [eax + 0x2e], 0x10
mov dword [esp + 0x14], edi
je 0x411d6b
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x411d6b
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov dword [ebx + 0x26], connect
mov dword [esp + 0x10], eax
test esi, esi
je 0x411d6b
mov dword [ebx + 0x26], 0x80c80000
test byte [ebx + 0x2e], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
je 0x411dc4
movzx ecx, word [ebx + 4]
movzx eax, byte [ebx + 0x13]
mov dl, byte [ebx + 0x14]
movzx esi, word [ebx + 6]
or dword [ebx + 0x26], 0x200000
imul ecx, eax
mov dword [esp + 0x24], ecx
movzx ecx, dl
imul ecx, esi
test dword [ebx + 0x26], 0x40000000
mov dword [esp + 0x28], ecx
je 0x411df4
jmp 0x411db6
dec dl
sub ecx, esi
mov byte [ebx + 0x14], dl
mov dword [esp + 0x28], ecx
mov eax, dword [0x50d25c]
movzx eax, word [eax]
cmp ecx, eax
jg 0x411dab
jmp 0x411df4
movzx ecx, byte [ebx + 0x13]
movzx eax, word [ebx + 4]
imul eax, ecx
movzx ecx, byte [ebx + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x24], eax
movzx eax, word [ebx + 6]
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x28], eax
push dword [ebx + 0x30]
lea eax, [esp + 0x20]
push edi
push dword [ebx + 0x26]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [0x50d274]
xor edx, edx
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
sub esi, dword [esp + 0x1c]
sub edi, dword [esp + 0x20]
add esi, 2
add edi, 2
mov dword [esp + 0x18], eax
cmp word [eax], dx
je 0x411e66
movzx eax, byte [ebx + 0x13]
movzx ecx, bp
imul eax, ecx
movzx ecx, byte [ebx + 0x14]
cdq
and edx, 3
lea esi, [edx + eax]
mov eax, dword [esp + 0x10]
movzx eax, ax
imul eax, ecx
sar esi, 2
cdq
and edx, 7
lea ebp, [edx + eax]
mov eax, dword [esp + 0x18]
sar ebp, 3
xor ecx, ecx
mov word [eax], cx
jmp 0x412060
mov eax, dword [0x50d248]
mov ecx, dword [eax]
test byte [ecx + 8], 0x40
jne 0x411ea3
test dword [ebx + 0x26], 0x80000000
je 0x411ea3
mov eax, dword [0x50d258]
movzx eax, word [eax]
sub eax, esi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x50d25c]
sar esi, 1
movzx eax, word [eax]
sub eax, edi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x412060
mov eax, dword [0x50d540]
cmp word [eax], dx
je 0x411f79
xor ecx, ecx
xorps xmm0, xmm0
mov word [eax], cx
mov eax, dword [ebx + 0xe]
movups xmmword [esp + 0x2c], xmm0
cmp dword [eax + 0x26], 0x40000000
jne 0x411ecd
mov eax, dword [eax + 0xe]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x411eea
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebx + 0xe]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
sub eax, esi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
sub eax, edi
sar esi, 1
add esi, dword [esp + 0x2c]
lea edi, [esp + 0x3c]
cdq
sub eax, edx
mov ebp, eax
xor eax, eax
push 0xa
pop ecx
sar ebp, 1
add ebp, dword [esp + 0x30]
rep stosd dword es:[edi], eax
call fcn.00410eed
test ax, ax
je 0x411f4c
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x28
push eax
mov eax, dword [ebx + 0xe]
push 2
push dword [eax]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
jmp 0x411f5d
push 0
lea eax, [esp + 0x54]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp esi, dword [esp + 0x50]
cmovl esi, dword [esp + 0x50]
cmp ebp, dword [esp + 0x54]
jge 0x412060
mov ebp, dword [esp + 0x54]
jmp 0x412060
test dword [ebx + 0x26], 0x80000000
je 0x41205a
test byte [ebx + 0x2e], 1
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
je 0x412002
lea eax, [esp + 0x2c]
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
pop eax
push eax
call edi
mov ecx, dword [0x50d248]
add eax, dword [esp + 0x2c]
push 0x21
mov ecx, dword [ecx]
movzx edx, byte [ecx + 0x13]
movzx ecx, bp
imul edx, ecx
add edx, eax
mov dword [esp + 0x1c], edx
call edi
push 0x1f
mov esi, eax
call edi
push 0xf
add esi, eax
call edi
add esi, eax
mov eax, dword [0x50d248]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
movzx eax, ax
movzx edx, byte [ecx + 0x14]
movzx ebp, byte [ecx + 0x24]
imul edx, eax
add edx, esi
mov esi, dword [esp + 0x18]
add ebp, edx
add ebp, dword [esp + 0x30]
jmp 0x412060
mov eax, dword [ebx + 0xe]
cmp dword [eax + 0x26], 0x40000000
jne 0x412011
mov eax, dword [eax + 0xe]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x41202e
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebx + 0xe]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
movzx eax, byte [ebx + 0x13]
imul eax, eax, 0xa
cdq
and edx, 3
lea esi, [edx + eax]
movzx eax, byte [ebx + 0x14]
imul eax, eax, 0xa
sar esi, 2
add esi, dword [esp + 0x2c]
cdq
and edx, 7
lea ebp, [edx + eax]
sar ebp, 3
add ebp, dword [esp + 0x30]
jmp 0x412060
movzx ebp, byte [ecx + 0x24]
mov esi, edx
test dword [ebx + 0x26], 0x80000000
je 0x41211e
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x3c]
sub eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0x10], eax
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
call fcn.00410eed
test ax, ax
je 0x4120c3
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x28
push eax
mov eax, dword [ebx + 0xe]
push 2
push dword [eax]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
jmp 0x4120d4
push 0
lea eax, [esp + 0x54]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
sub eax, dword [esp + 0x50]
sub edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x4120fd
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x58]
jle 0x412101
mov esi, dword [esp + 0x58]
sub esi, ecx
jmp 0x412101
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
cmp ecx, edx
jge 0x41211a
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0x5c]
jle 0x41211e
mov ebp, dword [esp + 0x5c]
sub ebp, ecx
jmp 0x41211e
mov ebp, dword [esp + 0x50]
movzx edx, word [ebx + 0x2e]
test dl, 0x10
je 0x412130
mov eax, dword [0x50d248]
mov eax, dword [eax]
jmp 0x412133
mov eax, dword [ebx + 0xe]
mov ecx, dword [0x52d734]
mov edi, dword [eax]
test ecx, ecx
jne 0x412151
test dl, 8
mov ecx, str.LXOWIN
mov eax, str.LXOWINS
cmove eax, ecx
mov ecx, eax
mov eax, dword [0x50d254]
mov edx, dword [esp + 0x14]
push 0
push dword [eax]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 0
push edi
add eax, 2
mov edi, 0x4c060e
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
add eax, 2
test edx, edx
push eax
push ebp
push esi
push dword [ebx + 0x26]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov eax, edi
cmovne eax, edx
push eax
push ecx
push dword [ebx + 0x30]
call esi
mov dword [ebx], eax
test eax, eax
jne 0x4121df
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push ebx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x40
push str.create_sub_window
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x412295
xor ebp, ebp
test dword [ebx + 0x26], 0x200000
je 0x4121f4
push ebp
push 1
push eax
call dword [sym.imp.USER32.dll_ShowScrollBar]
test byte [ebx + 0x2e], 1
je 0x41223f
mov eax, dword [0x50d254]
push ebp
push dword [eax]
push ebp
push dword [ebx]
push 0xa
push 0x64
push ebp
push ebp
push 0x40000000
push edi
mov edi, str.SCROLLBAR
push edi
push ebp
call esi
push ebp
mov dword [ebx + 0x1a], eax
mov eax, dword [0x50d254]
push dword [eax]
push ebp
push dword [ebx]
push 0x64
push 0xa
push ebp
push ebp
push 0x40000001
push 0x4c060e
push edi
push ebp
call esi
mov dword [ebx + 0x1e], eax
test dword [ebx + 0x26], 0x40000000
je 0x41225d
push ebx
call fcn.00412776
mov eax, dword [0x50d248]
pop ecx
push 0x20
pop ecx
mov eax, dword [eax]
or word [eax + 8], cx
mov eax, dword [0x50d248]
mov eax, dword [eax]
movzx eax, word [eax + 8]
test al, 0x44
jne 0x41227b
mov eax, dword [0x50d234]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push 1
push 0x86
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441a5e
add esp, 0x58
ret