Function at 0x408ea0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf98
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x440040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x88], esi
mov eax, dword [0x440b34]
mov edi, dword [eax + 0xc]
mov ecx, edi
mov dword [ebp - 0x90], edi
call fcn.0041db60
cmp byte [esi + 0x3a5], 4
jne 0x408f78
push 0
push 0x323
push dword [edi + 0x3c]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0x400
push 3
push dword [edi + 0x3c]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov esi, 0x6e
push 1
push esi
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, 0x73
jbe 0x408f25
mov eax, dword [0x440b34]
push 0
push 0x321
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x3c]
mov eax, dword [ebp - 0x88]
push esi
mov byte [eax + 0x3a5], 2
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0x323
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov esi, dword [ebp - 0x88]
mov eax, 0xfe0
cmp word [esi + 0x398], ax
je 0x4090a1
mov al, byte [0x440b09]
mov cl, al
inc al
cmp cl, 3
mov byte [0x440b09], al
mov ecx, edi
jae 0x409076
call fcn.004183b0
movzx eax, byte [0x440b09]
push eax
push str.Retrying_read_slots_config__retry_attempt__u_of_3_..._r_n
push 0x859dd6
push edi
call fcn.00418430
add esp, 0x10
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
call fcn.0040de60
push 0x41
mov dword [ebp - 4], 0
call fcn.0042b8ab
push 0x41
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x84], edi
mov eax, dword [esi + 4]
movzx eax, word [eax]
mov word [edi], ax
movzx eax, word [esi + 0xc]
sub ax, 2
mov word [edi + 2], ax
mov byte [edi + 4], 1
mov eax, dword [esi + 0xc]
sub eax, 2
push eax
mov eax, dword [esi + 4]
add eax, 2
push eax
lea eax, [edi + 5]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
add esp, 0x1c
lea ecx, [edi + 0x35c]
push eax
call fcn.0040d270
cmp dword [edi + 0x36c], 1
jne 0x409056
push dword [ebp - 0x84]
mov ecx, edi
call fcn.0041cbe0
mov eax, dword [esi + 4]
test eax, eax
je 0x409066
push eax
call fcn.0042b8a6
add esp, 4
push 0x10
push esi
call fcn.0042b893
add esp, 8
jmp 0x409e32
mov byte [0x440b09], 0
call fcn.004183b0
push str.Communication_with_Cronus_Zen_failed__device_is_unresponsive__r_n
push 0x859dd6
push edi
call fcn.00418430
add esp, 0xc
mov ecx, esi
call fcn.0041c630
jmp 0x409e32
push 0x123c
mov byte [0x440b09], 0
call fcn.0042b8ab
push 0x123c
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esi], 8
lea edi, [esi + 4]
push 0x40e4f0
push 0x40df10
push 8
push 0x247
push edi
call fcn.0042b8b4
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0xdc]
add ecx, 0x380
mov dword [ebp - 0x8c], ecx
cmp ecx, eax
je 0x409121
mov eax, dword [ecx]
mov dword [ecx], edi
test eax, eax
je 0x409158
push 0x40e4f0
lea esi, [eax - 4]
mov dword [ebp - 4], 1
push dword [esi]
push 0x247
push eax
jmp 0x409139
test edi, edi
je 0x409158
push 0x40e4f0
mov dword [ebp - 4], 2
push dword [esi]
push 0x247
push edi
call fcn.0042b928
imul eax, dword [esi], 0x247
add eax, 4
push eax
push esi
call fcn.0042ba3d
mov dword [ebp - 4], 0xffffffff
add esp, 8
push 0xfe0
call fcn.0042b8ab
push 0xfe0
mov esi, eax
push 0
push esi
mov dword [ebp - 0x40], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov edi, 8
add esi, 0x34
nop
push 0x2c
lea eax, [esi - 0x2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x34
push 0
push esi
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
movq qword [esi + 0x34], xmm0
push 0x17e
mov dword [esi + 0x3c], 0
push eax
mov word [esi + 0x48], ax
lea eax, [esi + 0x4a]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
add esi, 0x1fc
sub edi, 1
jne 0x409180
mov esi, dword [ebp - 0x88]
lea eax, [ebp - 0xe0]
lea edi, [esi + 0x384]
cmp edi, eax
mov dword [ebp - 0x9c], edi
mov eax, dword [ebp - 0x40]
je 0x4091f3
mov ecx, dword [edi]
mov dword [edi], eax
test ecx, ecx
je 0x4091fc
push ecx
jmp 0x4091f4
push eax
call fcn.0042b8a6
add esp, 4
mov edx, dword [esi + 0x38c]
mov ecx, dword [edx]
lea eax, [ecx + 0xfe0]
cmp eax, dword [edx + 4]
ja 0x409e4d
mov esi, dword [edx + 8]
mov edi, dword [edi]
add esi, ecx
push 0
mov ecx, 0x3f8
rep movsd dword es:[edi], dword [esi]
add dword [edx], 0xfe0
push str.SlotData
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4092a7
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x68], eax
push str.SlotData
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], eax
movups xmmword [ebp - 0x78], xmm0
call fcn.00402500
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 3
push eax
call fcn.004221a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
cmp ecx, 7
jbe 0x4092a7
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40929d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40929d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042b893
add esp, 8
mov edi, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa0], eax
mov byte [edi + 0x3ee], 0
nop word [eax + eax]
mov edx, dword [edi + 0x384]
imul ecx, eax, 0x1fc
add edx, ecx
movzx esi, word [edx + 0x74]
movzx eax, word [edx]
dec esi
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x40], esi
test esi, esi
jle 0x409c03
mov esi, 0xffff
cmp ax, si
jne 0x409327
lea ecx, [edx + 0x34]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409310
sub ecx, esi
mov dword [edx + ecx + 0x30], 0x6e69622e
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x9c]
xorps xmm0, xmm0
mov esi, dword [0x440b34]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov edx, dword [eax]
add edx, 0x34
mov dword [ebp - 0x18], 0
add edx, ecx
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409354
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040ecd0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
call fcn.00421790
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4093b5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4093ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004183b0
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 7
mov esi, 0xffff
mov edi, dword [ebp - 0xa4]
mov ecx, str.script
push dword [ebp - 0x40]
mov eax, dword [eax]
cmova edx, dword [ebp - 0x60]
push edx
cmp word [edi + eax], si
mov esi, str.gamepack
movzx eax, byte [edi + eax + 7]
cmovne ecx, esi
mov esi, dword [ebp - 0x90]
push ecx
sub eax, 0x2f
push eax
push str.Slot__u_has__ws__ws_using__u_bytes._r_n
push 0xaadcdc
push esi
call fcn.00418430
push 0x88
call fcn.0042b863
push 0x68
xorps xmm0, xmm0
mov dword [ebp - 0x84], eax
push 0
lea esi, [eax + 8]
movq qword [eax], xmm0
push esi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x84]
xorps xmm0, xmm0
movups xmmword [edx + 0x70], xmm0
lea eax, [edx + 0x70]
lea ecx, [eax + 0x10]
mov dword [eax + 0x14], 7
mov dword [ecx], 0
mov dword [ebp - 0x80], ecx
xor ecx, ecx
mov word [eax], cx
mov byte [edx], cl
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x44], eax
mov eax, dword [ecx]
mov ax, word [eax + edi]
mov word [edx + 6], ax
mov eax, dword [ecx]
mov al, byte [eax + edi + 7]
sub al, 0x30
mov byte [edx + 2], al
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 7
cmova eax, dword [ebp - 0x60]
push eax
push 0x34
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, 0xffff
add esp, 0x38
cmp word [ebp - 0x94], ax
jne 0x409b89
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0xc0]
movzx edx, byte [eax + 2]
inc edx
call fcn.00402290
push eax
mov edx, str.SlotDataSlot
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
call fcn.00401aa0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xac]
cmp ecx, 7
jbe 0x409527
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40951d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0x64], 7
mov word [ebp - 0xc0], ax
lea eax, [ebp - 0x78]
cmova eax, dword [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0xac], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409565
lea eax, [ebp - 0x78]
push eax
call fcn.004221a0
imul ecx, dword [ebp - 0xa0], 0x247
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
add eax, 0x1ff
mov dword [ebp - 0x94], ecx
add ecx, eax
lea eax, [ebp - 0x60]
cmp ecx, eax
je 0x4095cc
cmp dword [ebp - 0x4c], 7
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x50]
cmova edx, dword [ebp - 0x60]
mov esi, dword [ecx + 0x14]
cmp eax, esi
ja 0x4095c2
mov edi, ecx
cmp esi, 7
jbe 0x4095a9
mov edi, dword [ecx]
lea esi, [eax + eax]
mov dword [ecx + 0x10], eax
push esi
push edx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x4095cc
push edx
push dword [ebp - 0x80]
push eax
call fcn.0040e3c0
mov ecx, dword [ebp - 0x68]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x409e62
cmp dword [ebp - 0x64], 7
lea eax, [ebp - 0x78]
push 1
cmova eax, dword [ebp - 0x78]
push 0x433ab8
push ecx
push eax
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x2c]
call fcn.0040e800
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 7
mov ecx, dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x50]
sub eax, ecx
mov dword [ebp - 0x48], ecx
cmp edi, eax
ja 0x409652
cmp dword [ebp - 0x18], 7
lea eax, [ecx + edi]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmova esi, dword [ebp - 0x2c]
lea eax, [edi + edi]
push eax
push edx
lea ecx, [esi + ecx*2]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x48]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x2c]
jmp 0x409660
push edi
push edx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x2c]
push edi
call fcn.00401fc0
movups xmm0, xmmword [eax]
mov edi, dword [ebp - 0x8c]
xor ecx, ecx
mov esi, dword [ebp - 0x94]
movups xmmword [ebp - 0xd8], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0xd8]
mov ecx, dword [edi]
add ecx, 0x217
movq qword [ebp - 0xc8], xmm0
push eax
add ecx, esi
call fcn.0040ebd0
mov ecx, dword [ebp - 0xc4]
cmp ecx, 7
jbe 0x4096ec
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4096e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40972a
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409720
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
mov eax, dword [edi]
lea ecx, [esi + 0x217]
add ecx, eax
add eax, 0x22f
add eax, esi
cmp eax, ecx
je 0x40978a
cmp dword [ecx + 0x14], 7
mov edx, dword [ecx + 0x10]
jbe 0x40974a
mov ecx, dword [ecx]
cmp edx, dword [eax + 0x14]
ja 0x40977e
cmp dword [eax + 0x14], 7
mov edi, eax
jbe 0x409759
mov edi, dword [eax]
lea esi, [edx + edx]
mov dword [eax + 0x10], edx
push esi
push ecx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov esi, dword [ebp - 0x94]
mov edi, dword [ebp - 0x8c]
jmp 0x40978a
push ecx
push dword [ebp - 0x80]
mov ecx, eax
push edx
call fcn.0040e3c0
mov eax, dword [edi]
lea ecx, [esi + 0x22f]
push 3
add ecx, eax
sub esp, 8
mov eax, dword [eax + esi + 0x23f]
sub eax, 3
push eax
call fcn.0040d400
mov edx, dword [ebp - 0x8c]
mov ecx, 0x7f
mov eax, dword [ebp - 0x9c]
mov edi, dword [edx]
add edi, esi
mov esi, dword [eax]
add esi, dword [ebp - 0xa4]
add edi, 3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx]
mov edi, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov byte [eax + edi + 1], 1
mov eax, dword [edx]
mov byte [eax + edi + 2], 1
mov eax, dword [ebp - 0x84]
mov word [eax + 4], cx
mov eax, dword [edx]
add eax, 0x217
add eax, edi
cmp esi, eax
je 0x40984a
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x409807
mov eax, dword [eax]
mov edx, dword [esi + 0x14]
cmp ecx, edx
ja 0x409838
cmp edx, 7
jbe 0x409818
mov esi, dword [esi]
mov dword [ebp - 0x44], esi
mov edx, dword [ebp - 0x80]
lea esi, [ecx + ecx]
push esi
push eax
push dword [ebp - 0x44]
mov dword [edx], ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x44]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x409844
push eax
push dword [ebp - 0x80]
push ecx
mov ecx, esi
call fcn.0040e3c0
mov edx, dword [ebp - 0x8c]
mov esi, dword [edx]
push 0x38
add esi, edi
call fcn.0042b863
mov edi, eax
mov dword [ebp - 0xe4], edi
push 0x38
push 0
push edi
mov byte [ebp - 4], 0xb
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea ecx, [esi + 0x217]
push ecx
mov ecx, edi
call fcn.0040ef90
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 0xc
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x4098c5
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4098d5
test al, 0x10
je 0x4098e9
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
mov eax, dword [eax]
mov byte [eax + ecx], 1
jmp 0x4098ef
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
push 0x38
mov esi, dword [eax]
add esi, ecx
call fcn.0042b863
mov dword [ebp - 0xa8], eax
push 0x38
push 0
push eax
mov byte [ebp - 4], 0xd
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea ecx, [esi + 0x22f]
push ecx
mov ecx, dword [ebp - 0xa8]
call fcn.0040ef90
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x44], eax
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 2
mov dword [eax + 0x20], 0x40000000
mov dword [eax + 0x24], 0x80
mov dword [eax + 0x28], 2
mov dword [eax + 0x2c], 0xffffffff
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov byte [ebp - 4], 0xe
mov ecx, eax
push dword [eax + 0x18]
push dword [eax + 0x24]
push dword [eax + 0x1c]
push dword [eax + 0x28]
push dword [eax + 0x20]
push eax
call fcn.00418d60
test eax, eax
jne 0x409a02
mov ecx, dword [ebp - 0xa0]
lea esi, [ebp - 0x12]
mov eax, dword [0x440b34]
inc ecx
mov dword [ebp - 0x80], eax
nop dword [eax + eax]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x4099a0
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0xd8]
call fcn.00402160
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xf
push eax
mov edx, str.An_error_occured_while_opening_the_config_file_for_slot_
lea ecx, [ebp - 0xc0]
call fcn.00401aa0
mov ecx, dword [ebp - 0x80]
push eax
mov byte [ebp - 4], 0x10
call fcn.00421e40
mov byte [ebp - 4], 0xf
jmp 0x409a9d
mov eax, dword [ebp - 0x9c]
sub esp, 8
mov ecx, dword [ebp - 0xa8]
mov eax, dword [eax]
add eax, dword [ebp - 0xa4]
push 0x1fc
push eax
call fcn.00418e40
test eax, eax
jne 0x409b3a
mov ecx, dword [ebp - 0xa0]
lea esi, [ebp - 0x12]
mov eax, dword [0x440b34]
inc ecx
mov dword [ebp - 0x80], eax
nop
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x409a40
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0xd8]
call fcn.00402160
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x11
push eax
mov edx, str.An_error_occured_while_writing_the_config_file_for_slot_
lea ecx, [ebp - 0xc0]
call fcn.00401aa0
mov ecx, dword [ebp - 0x80]
push eax
mov byte [ebp - 4], 0x12
call fcn.00421e40
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xac]
cmp ecx, 7
jbe 0x409add
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409ad3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
mov byte [ebp - 4], 0xe
xor eax, eax
mov ecx, dword [ebp - 0xc4]
mov word [ebp - 0xc0], ax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], eax
cmp ecx, 7
jbe 0x409b3a
mov edx, dword [ebp - 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409b30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
push dword [ebp - 0xa8]
call fcn.0040d370
push edi
call fcn.0040d370
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x64]
cmp ecx, 7
jbe 0x409b89
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409b7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
push dword [ebp - 0x84]
mov esi, dword [ebp - 0x90]
push 0xffffffffffffffff
push 0x181
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x98]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x98], edx
inc byte [edi + 0x3ee]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
cmp ecx, 7
jbe 0x409c0f
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409bf7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409297
push ecx
push edx
call fcn.0042b893
add esp, 8
jmp 0x409c09
mov esi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0xa0], eax
cmp eax, 8
jb 0x4092d0
mov ecx, esi
test edx, edx
jne 0x409c45
call fcn.004183b0
push str.There_are_no_scripts_or_gamepacks_currently_on_your_device._r_n
push 0xaadcdc
push esi
call fcn.00418430
add esp, 0xc
jmp 0x409c87
call fcn.004183b0
mov edx, dword [ebp - 0x98]
mov eax, 0x3fff8
mov cl, byte [edi + 0x3ee]
sub eax, edx
push eax
push edx
cmp cl, 1
mov edx, 0x434788
mov eax, 0x433c34
cmovbe eax, edx
push eax
movzx eax, cl
push eax
push 0x433c38
push 0xaadcdc
push esi
call fcn.00418430
add esp, 0x1c
push dword [ebp - 0x98]
movzx eax, byte [edi + 0x3ee]
mov ecx, esi
push eax
call fcn.0041e490
mov al, byte [edi + 0x3a5]
cmp al, 9
je 0x409d2e
cmp al, 0xa
je 0x409d2e
mov eax, dword [edi + 0x388]
mov esi, 2
movzx edi, byte [eax]
xor eax, eax
test edi, edi
cmovne esi, eax
mov eax, dword [ebp - 0x90]
push esi
push 0x323
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_EnableMenuItem]
or esi, 0x400
push esi
mov esi, dword [ebp - 0x90]
push 3
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov esi, 0x6e
mov eax, dword [ebp - 0x90]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, 0x73
jbe 0x409d02
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0x88]
jmp 0x409d3d
lea eax, [ebp - 0x79]
mov byte [ebp - 0x79], 6
push eax
mov ecx, edi
call fcn.00402d40
mov eax, dword [edi + 0x388]
cmp byte [eax], 0
je 0x409e0d
lea edx, [ebp - 0x79]
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x79], 1
call fcn.0040d5b0
push 0x41
mov dword [ebp - 4], 0x13
call fcn.0042b8ab
push 0x41
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x84], edi
mov eax, dword [esi + 4]
movzx eax, word [eax]
mov word [edi], ax
movzx eax, word [esi + 0xc]
sub ax, 2
movzx eax, ax
mov word [edi + 2], ax
mov byte [edi + 4], 1
mov eax, dword [esi + 0xc]
sub eax, 2
push eax
mov eax, dword [esi + 4]
add eax, 2
push eax
lea eax, [edi + 5]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
add esp, 0x1c
lea ecx, [edi + 0x35c]
push eax
call fcn.0040d270
cmp dword [edi + 0x36c], 1
jne 0x409de9
push dword [ebp - 0x84]
mov ecx, edi
call fcn.0041cbe0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 4]
test eax, eax
je 0x409e00
push eax
call fcn.0042b8a6
add esp, 4
push 0x10
push esi
call fcn.0042b893
add esp, 8
jmp 0x409e22
push 0x10
push str.Warning:_Incompatible_Firmware
push str.Certain_features_are_unavailable_with_this_firmware_version._r_n_r_nFull_application_functionality_requires_a_firmware_modification._r_n_r_nGo_to_Firmware___Install_Compatible_Firmware_for_instructions.
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [edi + 0x3a5], 7
jne 0x409e32
mov ecx, edi
call fcn.00407c40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b832
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.004211c0
push 0x43dd08
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.00402390
int3