Function at 0x40a040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x45a024]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push str.2E375D7C_9042_4A00_BC4E_17CC07DA5902
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ecx
call edi
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
and eax, 0xff3fffff
push eax
push 0xfffffffffffffff0
push edx
call ebx
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 4]
or eax, 0x80
push eax
push 0xffffffffffffffec
push ecx
call ebx
mov edx, dword [esi + 0xdc]
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 4]
push 0x40
push 0x20a
push 0x2bc
push edx
push eax
xor ebx, ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esi + 0x7c]
push eax
push 0x67
call fcn.004155d0
lea edi, [esi + 0x80]
push edi
push 0x66
call fcn.004155d0
lea edx, [esi + 0x84]
push edx
push 0x65
call fcn.004155d0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x40a112
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0xc]
mov edi, dword [edi]
shr edx, 2
lea eax, [esp + 0xc]
mov dword [esi + 0x88], edx
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x40a13b
mov dword [edi + 8], eax
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esi + 0x8c], edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x88]
mov ecx, dword [esp + 0x1c]
lea edi, [eax + eax]
mov edx, ecx
sub edx, edi
mov dword [esi + 0xa8], edx
add edx, eax
mov dword [esi + 0xb0], edx
mov edx, dword [esi + 0x8c]
mov edi, ecx
sub edi, eax
mov dword [esi + 0xb4], edx
mov dword [esi + 0xb8], edi
mov edi, dword [esi + 0x7c]
mov dword [esi + 0xc4], edx
lea edx, [esp + 0xc]
mov dword [esi + 0xac], ebx
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0x9c], ebx
mov eax, dword [edi + 4]
push edx
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x40a1d0
mov dword [edi + 8], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x24]
lea edi, [esi + 0x24]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xd0], edx
mov edx, dword [eax + 0x10]
push esi
mov ecx, edi
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd4], 0x28
call edx
mov eax, dword [esi + 0x28]
push 1
push 0x1e0
push 0x2bc
push 0x14
push 0xfffffffffffffffd
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x78]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf0]
push 1
push eax
call edx
push 0x4612b0
push edi
call fcn.00409d80
push ebx
push ebx
push esi
push 0x40a270
push ebx
push ebx
call fcn.0041b736
mov ecx, dword [esp + 0x3c]
add esp, 0x18
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041af7a
mov esp, ebp
pop ebp
ret