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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451c8c
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x46d560]
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 0x40fe36
lea ebx, [ebx]
dec eax
cmp byte [eax], 0x5c
jne 0x40fe30
push str.DATABuyInfo.txt
mov byte [eax + 1], 0
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00438e34
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fe79
lea eax, [ebp - 0x11c]
push eax
call fcn.0040fbe0
test al, al
je 0x4100bb
xorps xmm0, xmm0
lea ecx, [ebp - 0x14c]
movdqu xmmword [ebp - 0x14c], xmm0
movq qword [ebp - 0x13c], xmm0
call fcn.004240d3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
movdqu xmmword [ebp - 0x134], xmm0
call fcn.004152a0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.00414abd
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40fee4
push 0x80004005
call fcn.00402b60
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.00402550
push 0
push 0x4000
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14c]
call fcn.00424343
mov dword [ebp - 0x120], 0
call fcn.00414abd
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ff58
push 0x80004005
call fcn.00402b60
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.004244b4
test eax, eax
je 0x41004d
test edi, edi
jne 0x4100ee
mov eax, dword [ebp - 0x120]
xor esi, esi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x154], eax
test eax, eax
jle 0x40ffda
test esi, esi
js 0x410126
mov eax, dword [ebp - 0x120]
cmp esi, dword [eax - 0xc]
jg 0x410126
mov al, byte [esi + eax]
movsx eax, al
push eax
call fcn.00439979
add esp, 4
test eax, eax
je 0x41003d
inc esi
cmp esi, dword [ebp - 0x154]
jl 0x40ffa7
mov edx, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
mov esi, dword [edx]
sub esi, 0x10
cmp ecx, esi
je 0x41003d
cmp dword [esi + 0xc], 0
jl 0x4100d8
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4100d8
push ecx
call fcn.00402a50
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 0x410032
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 0x40ff70
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 0x410073
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14c]
call fcn.00424236
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 0x4100a9
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.004240ed
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.004384c1
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x120]
mov ecx, edx
push dword [eax - 0xc]
push eax
call fcn.004025b0
jmp 0x41003d
cmp edi, 1
jne 0x410106
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.00402300
jmp 0x410043
cmp edi, 2
jne 0x410043
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x120]
push eax
call fcn.00402300
jmp 0x410043
push 0x80070057
call fcn.00402b60
int3