Function at 0x40b680
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x41a178]
xor eax, ebp
mov dword [ebp - 0x38], eax
push 1
push 0x20
lea eax, [ebp - 0xc0]
push eax
push 0x4205c0
call fcn.0040dc90
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0xffffffff
jne 0x40b70e
push 1
push 0x12c
push 0x4209a0
push 0x1b71
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b72
mov edx, dword [0x4204a0]
push edx
call fcn.0040c3b0
push 0
push 0x4209a0
push 0x420860
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40bc3c
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.0040c9f0
mov dword [ebp - 0x28], eax
push 0
mov edx, dword [ebp - 0x28]
sub edx, 0x114
push edx
mov eax, dword [ebp - 0xcc]
push eax
call fcn.0040ddc0
push 0x114
push 0x4206e0
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.0040ddf0
movzx edx, byte [0x4207f0]
shl edx, 0x18
movzx eax, byte [0x4207f1]
shl eax, 0x10
or edx, eax
movzx ecx, byte [0x4207f2]
shl ecx, 8
or edx, ecx
movzx eax, byte [0x4207f3]
or edx, eax
mov dword [ebp - 0x2c], edx
movzx ecx, byte [0x4207ec]
shl ecx, 0x18
movzx edx, byte [0x4207ed]
shl edx, 0x10
or ecx, edx
movzx eax, byte [0x4207ee]
shl eax, 8
or ecx, eax
movzx edx, byte [0x4207ef]
or ecx, edx
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x2c], 0x270f
je 0x40b806
push 1
push 0x12c
push 0x4209a0
push 0x1b73
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b74
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 0
push 0x4209a0
push 0x420860
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40bc3c
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x114
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x10], 0
jmp 0x40b833
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jge 0x40bc37
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x114
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc8], ecx
push 0
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xcc]
push eax
call fcn.0040ddc0
push 0x114
push 0x4206e0
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.0040ddf0
movzx edx, byte [0x4207e4]
shl edx, 0x18
movzx eax, byte [0x4207e5]
shl eax, 0x10
or edx, eax
movzx ecx, byte [0x4207e6]
shl ecx, 8
or edx, ecx
movzx eax, byte [0x4207e7]
or edx, eax
mov dword [ebp - 0x20], edx
movzx ecx, byte [0x4207e8]
shl ecx, 0x18
movzx edx, byte [0x4207e9]
shl edx, 0x10
or ecx, edx
movzx eax, byte [0x4207ea]
shl eax, 8
or ecx, eax
movzx edx, byte [0x4207eb]
or ecx, edx
mov dword [ebp - 0xd0], ecx
movzx eax, byte [0x4207ec]
shl eax, 0x18
movzx ecx, byte [0x4207ed]
shl ecx, 0x10
or eax, ecx
movzx edx, byte [0x4207ee]
shl edx, 8
or eax, edx
movzx ecx, byte [0x4207ef]
or eax, ecx
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xd0], 0
jne 0x40b927
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0x1c], 0
jmp 0x40b92e
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc4], 0xb
je 0x40b94e
mov eax, dword [ebp - 0xd4]
add eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
jmp 0x40b82a
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xd0]
cmp edx, dword [ebp - 0x20]
jle 0x40b970
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xdc], eax
jmp 0x40b979
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xdc]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b9fc
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.0040dda0
push 1
push 0x12c
push 0x4209a0
push 0x1b7c
mov edx, dword [0x4204a0]
push edx
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b7d
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
push 0
push 0x4209a0
push 0x420860
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40bc3c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jne 0x40ba81
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0xcc]
push edx
call fcn.0040dda0
push 1
push 0x12c
push 0x4209a0
push 0x1b7e
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b7f
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 0
push 0x4209a0
push 0x420860
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40bc3c
push 0
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.0040ddc0
cmp dword [ebp - 0x24], 0
jbe 0x40baee
cmp dword [ebp - 0x24], 0x7d00
jbe 0x40bab1
mov dword [ebp - 0xe0], 0x7d00
jmp 0x40baba
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xcc]
push eax
call fcn.0040ddf0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
jmp 0x40ba96
mov eax, dword [ebp - 0xcc]
push eax
call fcn.0040dda0
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0
cmp dword [ebp - 0x1c], 0
je 0x40bba4
push 0x41ffe0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xd0]
push eax
push 0x41b2e8
mov ecx, dword [ebp - 4]
push ecx
push 0x21
call fcn.00401150
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0xffffffff
jne 0x40bba4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 1
push 0x12c
push 0x4209a0
push 0x1b71
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b96
mov edx, dword [0x4204a0]
push edx
call fcn.0040c3b0
push 0
push 0x4209a0
push 0x420860
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40bc3c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [0x41b190], 0
je 0x40bbc1
mov dword [0x41be64], 0
mov edx, dword [0x41be64]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x41ffe0
push 0
push 0
push 0x41bfc0
push 0
push 0xb
call fcn.00401150
push 0x41ffe0
push 0
push 0
push 0x41b2e9
push 0x41bd60
push 0x28
call fcn.00401150
push 0x41ffe0
push 0
mov edx, dword [ebp - 8]
push edx
push 0x419210
mov eax, dword [ebp + 8]
push eax
call fcn.00401180
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40bc37
mov eax, 1
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 4