Function at 0x40feb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45203c
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x46e560]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push 0
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x158], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x11c]
dec ecx
add eax, ecx
cmp byte [eax], 0x5c
je 0x40ff26
lea ebx, [ebx]
dec eax
cmp byte [eax], 0x5c
jne 0x40ff20
push str.DATABuyInfo.txt
mov byte [eax + 1], 0
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004397a3
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ff69
lea eax, [ebp - 0x11c]
push eax
call fcn.0040fcd0
test al, al
je 0x4101ab
xorps xmm0, xmm0
lea ecx, [ebp - 0x14c]
movdqu xmmword [ebp - 0x14c], xmm0
movq qword [ebp - 0x13c], xmm0
call fcn.004243ee
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
movdqu xmmword [ebp - 0x134], xmm0
call fcn.004155ed
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.00414dfd
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ffd4
push 0x80004005
call fcn.00402a40
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0xffffffff
call fcn.004024b0
push 0
push 0x4000
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14c]
call fcn.0042467f
mov dword [ebp - 0x120], 0
call fcn.00414dfd
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x410048
push 0x80004005
call fcn.00402a40
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 3
xor edi, edi
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14c]
call fcn.004247f0
test eax, eax
je 0x41013d
test edi, edi
jne 0x4101de
mov eax, dword [ebp - 0x120]
xor esi, esi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x154], eax
test eax, eax
jle 0x4100ca
test esi, esi
js 0x410216
mov eax, dword [ebp - 0x120]
cmp esi, dword [eax - 0xc]
jg 0x410216
mov al, byte [esi + eax]
movsx eax, al
push eax
call fcn.00439c99
add esp, 4
test eax, eax
je 0x41012d
inc esi
cmp esi, dword [ebp - 0x154]
jl 0x410097
mov edx, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
mov esi, dword [edx]
sub esi, 0x10
cmp ecx, esi
je 0x41012d
cmp dword [esi + 0xc], 0
jl 0x4101c8
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4101c8
push ecx
call fcn.004029b0
add esp, 4
mov dword [ebp - 0x154], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410122
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x158]
add eax, 0x10
mov dword [ecx], eax
mov esi, dword [ebp - 0x150]
inc edi
cmp edi, 3
jl 0x410060
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x120]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410163
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14c]
call fcn.00424551
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x124]
add edx, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x410199
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 0xffffffff
call fcn.00424408
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004387e7
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x120]
mov ecx, edx
push dword [eax - 0xc]
push eax
call fcn.00402510
jmp 0x41012d
cmp edi, 1
jne 0x4101f6
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.00402260
jmp 0x410133
cmp edi, 2
jne 0x410133
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x120]
push eax
call fcn.00402260
jmp 0x410133
push 0x80070057
call fcn.00402a40
int3