Function at 0x4069a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534b30
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x584cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
call fcn.0040fcc4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4069ea
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push str.FjSnc.ini
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.004017d0
mov edi, eax
push 0x561388
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004017d0
mov ebx, eax
push str.C:Fuji
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004017d0
push ebx
push eax
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 3
call fcn.00403f60
push edi
push eax
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 4
call fcn.00403f60
add esp, 0x18
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.00406d50
test eax, eax
jne 0x406b4d
push eax
push str.Error
push str.Please_input_IP_address
mov ecx, esi
call fcn.004172cb
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406d31
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
mov dword [ecx], eax
push edx
lea ecx, [esi + 0xbc]
call fcn.004197f5
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
lea esp, [esp]
mov eax, dword [esi + 0x150]
push 0
push 0
push 0x146
push eax
call edi
cmp ebx, eax
jge 0x406be1
mov edx, dword [esi + 0x150]
lea ecx, [ebp - 0x20]
push ecx
push ebx
push 0x148
push edx
call edi
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406bc0
test dl, dl
je 0x406bbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406bc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ba0
xor eax, eax
jmp 0x406bc5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406bdb
push eax
mov eax, dword [esi + 0x150]
push ebx
push 0x144
push eax
call edi
jmp 0x406bdc
inc ebx
cmp ebx, 0xa
jl 0x406b70
mov ecx, dword [esi + 0x150]
push 0
push 0
push 0x146
push ecx
call edi
cmp eax, 0xa
jl 0x406c3b
jmp 0x406c00
mov edx, dword [esi + 0x150]
push 0
push 0
push 0x146
push edx
call edi
push 0
dec eax
push eax
mov eax, dword [esi + 0x150]
push 0x144
push eax
call edi
mov ecx, dword [esi + 0x150]
push 0
push 0
push 0x146
push ecx
call edi
cmp eax, 0xa
jge 0x406c00
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 0x150]
push edx
push 0
push 0x14a
push eax
call edi
push str.C:Fuji
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406c6b
push str.C:Fuji
call fcn.0050fae0
add esp, 4
mov ecx, dword [esi + 0x150]
xor ebx, ebx
push ebx
push ebx
push 0x146
push ecx
call edi
test eax, eax
jle 0x406ce3
cmp ebx, 0xa
jge 0x406ce3
lea eax, [ebx + 1]
push eax
push str._02d
lea edx, [ebp - 0x30]
push 3
push edx
mov dword [ebp - 0x2c], eax
call fcn.0050f695
mov ecx, dword [esi + 0x150]
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x148
push ecx
call edi
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
push str.IP_Address
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [esi + 0x150]
mov ebx, dword [ebp - 0x2c]
push 0
push 0
push 0x146
push edx
call edi
cmp ebx, eax
jl 0x406c81
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed6a
mov esp, ebp
pop ebp
ret 4