Function at 0x10010bc0
Capabilities:
Check if file exists
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x100a155b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28c]
mov ebx, dword [esp + 0x288]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 1
push 0x206
xor ebp, ebp
lea edx, [esp + 0x72]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x78], cx
call fcn.10059a00
add esp, 0xc
lea eax, [ebx + 0x84]
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 0x14]
push edx
xor eax, eax
xor ecx, ecx
push str..v_02d
lea edx, [esp + 0x68]
mov word [esp + 0x68], cx
mov dword [esp + 0x6a], eax
mov dword [esp + 0x6e], eax
call fcn.10012d90
add esp, 8
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push 0x20000000
neg eax
push 3
sbb eax, eax
push ebp
and eax, 0xc0000000
push 1
add eax, 0xc0000000
push eax
lea edx, [esp + 0x84]
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10010d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10010df9
cmp dword [ebx + 0x14], ebp
jne 0x10010e34
cmp eax, 5
je 0x10010ce5
cmp eax, 0x20
je 0x10010ce5
cmp eax, 0xa7
je 0x10010ce5
cmp eax, 0x21
je 0x10010ce5
cmp eax, 0x13
jne 0x10010e34
push ebp
push ebp
push 3
push ebp
push 1
push closesocket
lea eax, [esp + 0x84]
push eax
mov dword [ebx + 0x14], 1
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10010e2a
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10010e4b
mov edi, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
push 0x200
push edi
push ebp
call fcn.1009f830
or eax, edx
jne 0x10010e60
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], edi
push edx
lea edi, [ebx + 0x6c]
mov dword [esp + 0x58], ebp
call fcn.100121f0
xor edi, edi
cmp dword [ebx + 0x14], edi
jne 0x10010de7
xor eax, eax
mov word [esp + 0x34], ax
mov ebp, 7
lea eax, [esp + 0x6c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10010d85
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x70]
push ecx
lea esi, [esp + 0x38]
call fcn.10002580
mov edx, esi
push edx
lea eax, [ebx + 0x28c]
push eax
mov dword [esp + 0x288], edi
call fcn.100122e0
mov dword [esp + 0x280], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x10010dd8
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10057104
add esp, 4
xor edx, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], edi
mov word [esp + 0x34], dx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x40
mov dword [esp + 0x14], eax
jle 0x10010c15
mov esi, dword [ebx + 0x7c]
cmp dword [ebx + 0x78], esi
jbe 0x10010e06
call fcn.10057548
mov edi, dword [ebx + 0x6c]
mov ebp, edi
mov dword [esp + 0x28], esi
test edi, edi
jne 0x10010e71
call fcn.10057548
xor eax, eax
lea ecx, [esi - 0x10]
cmp ecx, dword [eax + 0x10]
ja 0x10010e7c
test edi, edi
je 0x10010e75
mov edi, dword [edi]
jmp 0x10010e77
call fcn.10002c20
jmp 0x10010fe7
cmp eax, ebp
jle 0x10010fe7
and eax, 0xffff
or eax, 0x80070000
jmp 0x10010fe7
call fcn.10002c20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x10010fe7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe0035003
jmp 0x10010fe7
mov eax, dword [edi]
jmp 0x10010e1a
xor edi, edi
cmp ecx, dword [edi + 0xc]
jae 0x10010e81
call fcn.10057548
add esi, 0xfffffff0
test ebp, ebp
jne 0x10011011
call fcn.10057548
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x10010e9d
call fcn.10057548
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebp, dword [esp + 0x20]
sub eax, 0x200
push 0x200
sbb ecx, 0
push 0
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.10059a00
mov eax, dword [esi]
add esp, 0xc
push 0
push ebp
lea edx, [esp + 0x1c]
push edx
push 1
push eax
lea edi, [ebx + 8]
push edi
mov eax, 0x200
call fcn.100035b0
test eax, eax
jl 0x10010fe7
cmp eax, 1
je 0x10010fe7
mov edx, ebp
call fcn.10010630
test eax, eax
jne 0x10010fe5
push 0x200
push eax
push ebp
call fcn.10059a00
mov ebp, dword [ebx + 0x78]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp ebp, dword [ebx + 0x7c]
jbe 0x10010f28
call fcn.10057548
mov eax, dword [ebx + 0x6c]
test eax, eax
jne 0x10011019
call fcn.10057548
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x10010f44
call fcn.10057548
mov eax, dword [ebp]
mov ebp, dword [esp + 0x20]
push 0
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push edi
mov eax, 0x200
call fcn.100035b0
test eax, eax
jl 0x10010fe7
cmp eax, 1
je 0x10010fe7
mov edx, ebp
call fcn.10010630
test eax, eax
je 0x10010e67
cmp dword [ebx + 0x14], 0
jne 0x10010fe5
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add edx, 0xffffffff
adc eax, 0xffffffff
shrd edx, eax, 9
push 0
push 0x200
shr eax, 9
push eax
push edx
call fcn.10065760
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov ebp, edx
lea edx, [esp + 0x1c]
mov ebx, eax
mov eax, dword [esi]
push edx
push 1
push eax
mov eax, 0x200
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call fcn.100036f0
test eax, eax
jl 0x10010fe7
cmp eax, 1
je 0x10010fe7
add ebx, 0x200
adc ebp, 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebp
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.1005710f
add esp, 0x270
ret 8
mov eax, dword [ebp]
jmp 0x10010e93
mov eax, dword [eax]
jmp 0x10010f3a