Function at 0x410350
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8de5
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], esi
lea ecx, [ebx + 0x178]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp ecx, eax
je 0x4103bd
cmp dword [ebp + 0x20], 8
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.004014e0
or dword [ebx + 0x1a8], 2
push esi
push 0x64
push 0x64
push 0
push 0
push ecx
push 0x86000000
push ecx
lea ecx, [ebx + 0x15c]
call fcn.0041e860
cmp dword [ebx + 0x160], 0
je 0x410401
push 0
push 0
push 0
lea ecx, [ebx + 4]
call fcn.00419880
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
push 0
call dword [eax + 0x4c]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c6550
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x260], 0
mov ecx, edx
mov dword [ebp - 0x250], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410466
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.004014e0
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x260]
mov ecx, esp
lea esi, [ebp - 0x248]
push eax
call fcn.00406340
mov ecx, esi
call fcn.00404a90
add esp, 0x18
mov dword [ebp - 0x268], eax
test eax, eax
je 0x4108e5
sub esp, 0x18
mov ecx, esp
push 9
push str.game_logo
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004014e0
lea esi, [ebx + 4]
mov ecx, esi
call fcn.004181d0
sub esp, 0x18
mov edi, eax
mov ecx, esp
push 0xa
push str.game_title
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004014e0
mov ecx, esi
call fcn.004181d0
mov dword [ebp - 0x264], eax
test edi, edi
je 0x410597
cmp byte [edi + 0xe0], 0
je 0x41055c
mov ecx, dword [edi + 0xdc]
test ecx, ecx
je 0x41055c
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0x78]
mov eax, dword [ebp - 0x268]
mov dword [edi + 0xdc], eax
mov byte [edi + 0xe0], 0
mov al, byte [ecx + 0xa4]
test al, 4
jne 0x410591
push 0
push 0
push 1
or al, 4
push 0x18
mov byte [ecx + 0xa4], al
call fcn.00419910
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x41060d
cmp dword [eax + 0x44], 8
lea ecx, [eax + 0x30]
jb 0x4105a7
mov ecx, dword [eax + 0x30]
cmp dword [ebp - 0x234], 8
lea edi, [ebp - 0x248]
mov edx, dword [ebp - 0x238]
cmovae edi, dword [ebp - 0x248]
cmp edx, dword [eax + 0x40]
jne 0x4107e4
test edx, edx
je 0x4105e5
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4107e4
add ecx, 2
sub edx, 1
jne 0x4105d0
mov edi, dword [ebp - 0x264]
mov ecx, dword [edi + 0x78]
mov al, byte [ecx + 0xa4]
test al, 4
jne 0x41060d
push 0
push 0
push 1
or al, 4
push 0x18
mov byte [ecx + 0xa4], al
call fcn.00419910
push 0x17
xor eax, eax
mov dword [ebp - 0x230], 0
push str.img:fileimg_setup0.png
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004014e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a0]
push 4
xor eax, eax
mov dword [ebp - 0x2a0], 0
push str.back
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 7
mov word [ebp - 0x2a0], ax
call fcn.004014e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x288]
push 5
xor eax, eax
mov dword [ebp - 0x288], 0
push str.page1
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
call fcn.004014e0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x288]
mov ecx, esp
push eax
call fcn.00406340
mov ecx, esi
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x4106e9
nop
mov ecx, eax
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x4106e0
call fcn.004181d0
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x2a0]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x274]
cmp edx, 8
jb 0x410747
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41073d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b62
push edx
push ecx
call fcn.00476a87
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28c]
cmp edx, 8
jb 0x41078b
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410781
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b62
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 7
mov word [ebp - 0x2a0], ax
cmp edx, 8
jb 0x41081b
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410811
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b62
jmp 0x410811
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov edi, dword [ebp - 0x264]
mov ecx, edi
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push 0
push 0xc
call fcn.00419910
jmp 0x4105eb
push edx
push ecx
call fcn.00476a87
add esp, 8
push 8
xor eax, eax
mov dword [ebp - 0x230], 0
push str.txt_logo
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004014e0
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x230]
mov ecx, esp
push eax
call fcn.00406340
mov eax, dword [esi + 0x78]
test eax, eax
je 0x410879
mov esi, eax
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x410870
mov ecx, esi
call fcn.004181d0
mov ecx, eax
mov al, byte [ecx + 0xa4]
test al, 4
je 0x4108a1
push 0
push 0
push 0
and al, 0xfb
push 0x18
mov byte [ecx + 0xa4], al
call fcn.00419910
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x21c]
cmp esi, 8
jb 0x4108e5
mov edx, dword [ebp - 0x230]
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x4108db
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b6c
push esi
push edx
call fcn.00476a87
add esp, 8
push ecx
lea ecx, [ebx + 0x15c]
call fcn.0041e910
xor ecx, ecx
mov eax, 5
cmp byte [ebx + 0x264], cl
cmovne eax, ecx
push eax
push dword [ebx + 0x160]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
push 0
call dword [eax + 0x4c]
lea eax, [ebx + 0x234]
push eax
lea ecx, [ebp - 0x288]
call fcn.00406340
lea edx, [ebp - 0x288]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x230]
call fcn.00406830
mov byte [ebp - 4], 8
mov ecx, dword [0x5323b8]
push str.OnInitWnd
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0xc]
add edx, 0x10
call fcn.0043c610
mov edi, dword [ebp - 0x230]
lea edx, [ebp - 0x230]
mov esi, dword [0x5323b8]
add esp, 4
cmp dword [ebp - 0x21c], 0x10
cmovae edx, edi
test edx, edx
jne 0x41098b
mov eax, dword [esi + 0xc]
mov byte [eax + 8], dl
jmp 0x4109a5
mov ecx, esi
call fcn.0044da40
mov ecx, dword [esi + 0xc]
mov edi, dword [ebp - 0x230]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov eax, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [eax + 0xc], 0
jle 0x4109b9
mov ecx, esi
call fcn.0044bba0
mov ecx, dword [0x5323b8]
mov edx, 1
push 0
push 0
push 0
push 0
call fcn.0043cc70
mov byte [ebp - 4], 7
add esp, 0x10
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x410a0e
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x410a04
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b67
push ecx
push edi
call fcn.00476a87
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x274]
cmp edx, 8
jb 0x410a52
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410a48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b67
push edx
push ecx
call fcn.00476a87
add esp, 8
push dword [ebp - 0x26c]
mov ecx, ebx
call fcn.0041b7d0
mov esi, dword [ebp - 0x270]
lea eax, [ebx + 0x24c]
push eax
mov ecx, esi
call fcn.00406340
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x410ab3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410aa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b6c
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x410b0c
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b6c
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x410b42
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b6c
push edx
push ecx
call fcn.00476a87
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
ret 0x20
call fcn.004ca66d
call fcn.004ca66d
call fcn.004ca66d
int3