Function at 0x406b8e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ebx, dword [0x4b5b0d]
add ebx, 0x10
mov dword [ebp - 4], ebx
push 0x499773
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.00401096
add esp, 8
cmp eax, 0
jne 0x406c0d
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x40aa67
push 0x4b0
push 1
push dword [0x4b5b25]
push 0x4b5b5d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x208]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406c0d
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [0x4b5b11]
call fcn.00404c71
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406c2a
call fcn.0040725e
call fcn.0040205e
mov dword [ebp - 4], eax
push str.iniOem.ini
push dword [ebp - 4]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406c5a
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x406c7c
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406c8f
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x406cff
call fcn.0040205e
mov dword [ebp - 4], eax
push str.iniOem.ini
push dword [ebp - 4]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406cc9
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406cdc
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406cff
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 4], eax
push str.iniOem.dat
push dword [ebp - 4]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406d2f
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x406d51
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406d64
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x406dd4
call fcn.0040205e
mov dword [ebp - 4], eax
push str.iniOem.dat
push dword [ebp - 4]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406d9e
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406db1
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406dd4
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 4], eax
push str.iniSav.dat
push dword [ebp - 4]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406e04
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x406e26
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406e39
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x406ea9
call fcn.0040205e
mov dword [ebp - 4], eax
push str.iniSav.dat
push dword [ebp - 4]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406e73
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406e86
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406ea9
push ebx
call fcn.0044dbce
add esp, 4
push 0x40b276
push 0
push 0x4b5b61
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push 0x40b2ed
push 0x4b5b21
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1d8]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b31
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b39
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b3d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b21
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b45
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b49
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b51
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x7f89
call fcn.004077e0
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x4b5b4d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x11c]
push 0x40b934
push 0x4b5b39
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1e0]
push 0x410a75
push 0x4b5b45
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1e0]
push 0x410cb7
push 0x4b5b49
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1e0]
push 0x41449c
push 0x4b5b51
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1e0]
push 0x4146a4
push 0x4b5b4d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1e0]
push 0x414703
push 0x4b5b3d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1e0]
push 0x415e47
push 0x4b5b21
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1e0]
push 0x416299
push 0x4b5b31
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x144]
push 0x4162dc
push 0x4b5b35
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x260]
mov eax, 0x4b1f8a
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x4b5b29
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1dc]
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4070f9
push ebx
call fcn.0044dbce
add esp, 4
fild dword [ebp - 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fdiv qword [0x4995d5]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov dword [0x4b5b65], eax
mov ebx, dword [0x4b5b0d]
add ebx, 0xc
mov dword [ebp - 4], ebx
push 1
push dword [ebp - 4]
push 0x4b5b2d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov ebx, eax
test ebx, ebx
je 0x40714b
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 0x4b5b2d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40717d
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x407190
mov eax, 0x499305
push eax
push 1
mov ebx, 0x130
call fcn.0044ee30
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4071b6
push ebx
call fcn.0044dbce
add esp, 4
fild dword [ebp - 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul dword [0x4b5b65]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
fld qword [ebp - 0x1c]
call fcn.00401e95
push eax
push 0x4b5b2d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc8]
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
push 0x4b5b29
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push dword [ebp - 0xc]
push 0x4b5b2d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc0]
push 0x4165e4
push 0x16
push 0x4b5b69
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov esp, ebp
pop ebp
ret