Function at 0x4583d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x60d956
mov eax, dword fs:[0]
push eax
sub esp, 0xdcc
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xdc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xde0]
mov dword fs:[0], eax
cmp dword [0x678ef0], 0
mov esi, ecx
mov dword [esp + 0x20], esi
jne 0x4587b5
mov eax, dword [0x6784cc]
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor ebx, ebx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00458180
test eax, eax
jne 0x458696
call fcn.004062c0
mov ebp, dword [0x678ec4]
mov ecx, 0x368
mov esi, ebp
lea edi, [esp + 0x3c]
mov dword [0x678ec0], 1
rep movsd dword es:[edi], dword [esi]
jmp 0x458470
cmp ebx, 8
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + ebx*4 + 0x3c]
ja case.default.0x458481
jmp dword [ebx*4 + 0x4587e4]
push ecx
mov edi, ebp
call fcn.0041b3a0
add esp, 4
jmp case.default.0x458481
push ecx
mov ebx, ebp
call fcn.00436540
mov ebx, dword [esp + 0x20]
add esp, 4
jmp case.default.0x458481
push ecx
mov ebx, ebp
call fcn.00422200
mov ebx, dword [esp + 0x20]
add esp, 4
jmp case.default.0x458481
push ecx
mov esi, ebp
call fcn.0040d970
add esp, 4
jmp case.default.0x458481
push ebp
mov esi, ecx
call fcn.00410bb0
add esp, 4
jmp case.default.0x458481
mov ecx, dword [esp + 0x20]
push ebp
add ecx, 0x11c
call fcn.00482130
jmp case.default.0x458481
mov ecx, ebp
call fcn.00443b80
jmp case.default.0x458481
mov ecx, dword [esp + 0x20]
add ecx, 0x2b0
push ecx
mov esi, ebp
call fcn.00434ce0
jmp case.default.0x458481
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x354]
xor edx, edx
test eax, eax
je 0x458522
mov eax, dword [eax]
cmp eax, dword [esi + 0x54]
jne 0x458522
mov edx, 1
push edx
push ebp
call fcn.0042a430
add esp, 8
add ebx, 1
cmp ebx, 9
mov dword [esp + 0x1c], ebx
jl 0x458470
call fcn.00459850
mov dword [esp + 0x28], eax
mov byte [eax + 0xf], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [eax + 8], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0xde8], esi
movzx eax, word [ebp + 0x8b2]
cmp ax, si
je 0x458595
movzx ecx, ax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x2c]
mov esi, 1
mov dword [esp + 0x20], ecx
call fcn.00458e10
movzx eax, word [ebp + 0x8ac]
test ax, ax
je 0x4585be
movzx ecx, ax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x2c]
add esi, 1
mov dword [esp + 0x20], ecx
call fcn.00458e10
movzx eax, word [ebp + 0x8ae]
test ax, ax
je 0x4585e7
movzx ecx, ax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x2c]
add esi, 1
mov dword [esp + 0x20], ecx
call fcn.00458e10
movzx eax, word [ebp + 0x8b0]
test ax, ax
je 0x458610
movzx ecx, ax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x2c]
add esi, 1
mov dword [esp + 0x20], ecx
call fcn.00458e10
movzx eax, word [ebp + 0x8b4]
test ax, ax
je 0x458639
movzx ecx, ax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x2c]
add esi, 1
mov dword [esp + 0x20], ecx
call fcn.00458e10
movzx eax, word [ebp + 0x8b6]
test ax, ax
je 0x458662
movzx ecx, ax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x2c]
add esi, 1
mov dword [esp + 0x20], ecx
call fcn.00458e10
cmp dword [esp + 0x2c], esi
je 0x45869d
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push 0
push 0x625b68
push 0x628f88
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esp + 0x24]
mov dword [esp + 0xde8], 0xffffffff
call fcn.005291f0
xor eax, eax
jmp 0x4587ba
mov eax, dword [esp + 0x9b4]
cmp eax, dword [ebp + 0x978]
je 0x4586b3
mov byte [ebp + 0x9c0], 1
mov ecx, dword [esp + 0xa2c]
cmp ecx, dword [ebp + 0x9f0]
jne 0x4586d1
mov edx, dword [esp + 0x4a0]
cmp edx, dword [ebp + 0x464]
je 0x4586d8
mov byte [ebp + 0x9c1], 1
mov eax, dword [esp + 0x470]
cmp eax, 2
je 0x4586ed
cmp eax, 8
je 0x4586ed
xor ecx, ecx
jmp 0x4586f2
mov ecx, 1
mov eax, dword [ebp + 0x434]
cmp eax, 2
je 0x458706
cmp eax, 8
je 0x458706
xor eax, eax
jmp 0x45870b
mov eax, 1
cmp ecx, eax
je 0x45875f
lea edi, [esp + 0x1c]
call fcn.0047ac70
mov eax, edi
mov byte [esp + 0xde8], 1
call fcn.00576f50
mov edx, str.phrase.ini
call fcn.0040ae60
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458747
mov byte [ebp + 0x9c0], 1
lea ecx, [esp + 0x1c]
mov byte [ebp + 0x9c1], 1
mov byte [esp + 0xde8], 0
call fcn.00403870
mov ecx, 0x368
mov esi, ebp
mov edi, 0x67d058
rep movsd dword es:[edi], dword [esi]
call fcn.004062c0
call fcn.00409bf0
test eax, eax
jne 0x458787
push 1
push ebp
call fcn.00406360
test eax, eax
jne 0x4587a1
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push 0
push 0x628fb8
push 0x628fc4
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esp + 0x24]
mov dword [esp + 0xde8], 0xffffffff
call fcn.005291f0
mov eax, 1
mov ecx, dword [esp + 0xde0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc8]
xor ecx, esp
call fcn.005d28b3
add esp, 0xdd8
ret