Function at 0x40bb90
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x4bc488
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov edx, dword [ebp + 0x71c]
xor eax, eax
xor ebx, ebx
add edx, 0x414
lea esi, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00429cb0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
mov edi, esi
mov ecx, ebp
mov dword [esp + 0x28], ebx
call fcn.0040ba50
mov dword [esp + 0x64], ebx
mov eax, dword [0x4fd4e4]
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [ebp + 4]
push eax
mov esi, 1
push esi
push 0x80
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x71c]
mov byte [ebp + 0x6f8], 1
mov dword [ebp + 0x6a8], esi
mov edx, dword [eax + 0x41c]
sub edx, dword [eax + 0x414]
test edx, edx
jle 0x40bc88
mov ecx, dword [eax + 0x420]
sub ecx, dword [eax + 0x418]
test ecx, ecx
jle 0x40bc88
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push esi
sub edx, eax
push edx
mov edx, dword [esp + 0x38]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebp + 4]
push 0x4dbdc0
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x48]
push edx
push eax
mov dword [ebp + 0x6e4], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 4]
push 0x40
push ebx
push ebx
push ecx
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ecx
call ebx
mov eax, dword [ebp + 0x71c]
mov edx, dword [eax + 0x420]
sub edx, dword [eax + 0x418]
mov ecx, dword [eax + 0x41c]
sub ecx, dword [eax + 0x414]
push esi
push edx
mov edx, dword [ebp + 0x5c]
push ecx
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0x6d4]
push 0
push eax
call ebx
mov ecx, dword [ebp + 0x6cc]
push 5
push ecx
call ebx
mov edx, dword [0x4f9f84]
mov eax, 0x4dbddc
shr eax, 0x10
mov dword [esp + 0x6c], edx
test eax, eax
jne 0x40bd41
mov ecx, 0x4dbddc
movzx eax, cx
push eax
lea ecx, [esp + 0x70]
call fcn.004037f0
jmp 0x40bd77
push 0x4dbddc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x40bd77
mov ecx, esi
lea edx, [esp + 0x6c]
call fcn.004034c0
test eax, eax
je 0x40bd77
mov eax, dword [esp + 0x6c]
lea edx, [esi + esi]
push edx
push 0x4dbddc
push eax
call fcn.0049c670
add esp, 0xc
lea esi, [ebp + 0x58]
lea eax, [esi + 0x2c]
lea edi, [esp + 0x6c]
mov byte [esp + 0x64], 1
mov dword [esp + 0x20], esi
call fcn.0040a460
mov ecx, dword [esp + 0x6c]
push ecx
lea edx, [esi + 0x14c]
push 0x1c0
push edx
mov dword [esi + 0x148], 1
call fcn.00498b64
mov eax, 0x19
mov dword [ebp + 0xc4], eax
mov eax, 0x46
mov dword [ebp + 0xc8], eax
mov eax, 0x1bd
mov dword [ebp + 0xcc], eax
mov eax, 0x5f
mov dword [ebp + 0xd0], eax
mov eax, 0x19
mov dword [esi + 0x7c], eax
add esp, 0xc
mov ecx, 0x5f
mov dword [esi + 0x80], ecx
mov edx, 0x1db
mov dword [esi + 0x84], edx
mov edi, 0x73
mov dword [esi + 0x88], edi
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
push 1
mov edx, edi
sub edx, eax
push edx
mov edx, dword [esi + 0x84]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x3c]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x198
mov dword [esp + 0x2c], 0x130
mov dword [esp + 0x30], 0x1d4
mov dword [esp + 0x34], 0x149
call fcn.00429510
mov edi, dword [0x4f9f84]
mov ecx, 0x4dbdfc
shr ecx, 0x10
mov dword [esp + 0x18], edi
test ecx, ecx
jne 0x40c021
mov edx, 0x4dbdfc
movzx eax, dx
push eax
lea ecx, [esp + 0x1c]
call fcn.004037f0
mov edi, dword [esp + 0x18]
mov edx, dword [ebp + 0x98]
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [edi - 0xc]
cmp eax, 0x4f9f74
je 0x40beb4
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40beb4
push edi
call fcn.00498b08
add esp, 4
mov byte [ebp + 0x17c], 0
mov ecx, dword [esi + 0x9c]
push 5
push ecx
call ebx
mov edx, dword [esi + 0x9c]
push 0
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x4f9f84]
mov dword [esp + 0x18], eax
push 0x4dbe10
push 0x4dbe10
mov byte [esp + 0x6c], 2
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea esi, [esp + 0x1c]
call fcn.00403650
push 0x4dbe60
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40bf1d
mov esi, eax
mov edx, 0x4dbe60
lea eax, [esp + 0x18]
call fcn.00403750
lea eax, [ebp + 0x130]
lea edi, [esp + 0x18]
call fcn.0040a460
mov ecx, dword [ebp + 0x6cc]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, 1
push 0
push ecx
mov byte [ebp + 0x180], 0
mov byte [ebp + 0x182], bl
mov byte [ebp + 0x181], bl
mov byte [ebp + 0x17d], bl
call edi
mov edx, dword [ebp + 0x6e0]
push 5
push edx
call edi
mov eax, dword [ebp + 0x5c]
push ebx
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xa4]
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0xa0]
push ebx
sub edx, eax
push edx
mov edx, dword [esi + 0xa8]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x9c]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 0x9c]
push 5
push ecx
call edi
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x4f9f74
je 0x40bfd6
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40bfd6
push esi
call fcn.00498b08
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [eax - 0xc]
cmp ecx, 0x4f9f74
je 0x40bffc
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40bffc
push esi
call fcn.00498b08
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40c00b
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 4
push 0x4dbdfc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40be85
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.004034c0
test eax, eax
je 0x40be81
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
push 0x4dbdfc
push edi
call fcn.0049c670
add esp, 0xc
jmp 0x40be85