Function at 0x467830
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1b88
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46787e
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4678ae
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x3c], edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004c3db3
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
push esi
push ecx
lea edx, [ebp - 0x34]
push str._s_04x.lpp
push edx
call fcn.004065c0
mov eax, dword [ebp - 0x34]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x4678f9
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405c00
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0040f240
add esp, 8
test eax, eax
je 0x467957
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46792a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x467b3b
lea ecx, [ebp - 0x34]
push ecx
mov ecx, ebx
call fcn.004c3f16
mov edx, dword [ebp - 0x38]
push esi
push edx
lea eax, [ebp - 0x34]
push str._s_04x.rsf
push eax
call fcn.004065c0
mov ecx, dword [ebp - 0x34]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x10
push ecx
call edi
test eax, eax
je 0x46798e
lea edx, [ebp - 0x34]
push edx
jmp 0x4679b2
mov eax, dword [ebp - 0x38]
push esi
push eax
lea ecx, [ebp - 0x34]
push str._s_04x.lpt
push ecx
call fcn.004065c0
mov edx, dword [ebp - 0x34]
add esp, 0x10
push edx
call edi
test eax, eax
je 0x4679b9
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.004c3f16
mov ecx, dword [ebp - 0x38]
push esi
push ecx
lea edx, [ebp - 0x3c]
push str._s_04x.log
push edx
call fcn.004065c0
mov esi, dword [ebp - 0x3c]
add esp, 0x10
push esi
call edi
test eax, eax
je 0x467a4e
push 0x4020
push esi
lea ecx, [ebp - 0x58]
call fcn.004c132d
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004c11e4
test eax, eax
je 0x467a42
jmp 0x467a00
push 0
push 0xa
lea ecx, [ebp - 0x34]
call fcn.00445d50
mov ecx, dword [ebp - 0x34]
push ecx
call edi
test eax, eax
je 0x467a32
mov edx, dword [ebp - 0x34]
push 0
push edx
mov ecx, ebx
call fcn.004c3d7d
test eax, eax
jne 0x467a32
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.004c3f16
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004c11e4
test eax, eax
jne 0x467a00
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004c10c3
xor edx, edx
xor esi, esi
cmp dx, word [ebp - 0x28]
jae 0x467ae1
mov dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
push 0
push eax
push ecx
call fcn.005bcb9e
add esp, 0xc
test eax, eax
jne 0x467ad4
mov edx, dword [ebp - 0x30]
push edx
push 1
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.005bc8fb
add esp, 0x10
test eax, eax
je 0x467ad4
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push ecx
push edx
lea eax, [ebp - 0x34]
push str._s_s
push eax
mov byte [ebp - 0x14], 0
call fcn.004065c0
mov ecx, dword [ebp - 0x34]
add esp, 0x10
push ecx
call edi
test eax, eax
je 0x467ad4
mov edx, dword [ebp - 0x34]
push 0
push edx
mov ecx, ebx
call fcn.004c3d7d
test eax, eax
jne 0x467ad4
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.004c3f16
movzx ecx, word [ebp - 0x28]
add dword [ebp - 0x40], 0x10
inc esi
cmp esi, ecx
jl 0x467a63
mov edx, dword [ebp - 0x30]
push edx
call fcn.005bcc87
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebx + 0xc]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467b39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret 0xc