Function at 0x100251e0
Capabilities:
Check if file exists
Get file size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100a0e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x498]
mov eax, dword [esp + 0x49c]
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], eax
test esi, esi
je 0x100255ed
cmp word [esi], 0
je 0x100255ed
mov eax, dword [ebx + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x20000000
neg eax
push 3
sbb eax, eax
push 0
and eax, 0xc0000000
push 1
add eax, 0xc0000000
push eax
push esi
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x490], 0
cmp edi, 0xffffffff
jne 0x100252f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100252c4
cmp eax, 0x20
je 0x100252c4
cmp eax, 0xa7
je 0x100252c4
cmp eax, 0x21
je 0x100252c4
cmp eax, 0x13
je 0x100252c4
test eax, eax
jle 0x100252b2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov eax, edi
jmp 0x100255f2
push 0
push 0
push 3
push 0
push 1
push closesocket
push esi
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x100252eb
call fcn.10002c20
jmp 0x100255f2
mov dword [ebx + 0x14], 1
jmp 0x10025305
cmp dword [ebx + 0x14], 0
jne 0x10025305
add ebx, 0x4c
push ebx
mov edx, esi
call fcn.10009fe0
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ebx, eax
test ebx, ebx
jne 0x10025327
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x100255f2
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x286]
push edx
mov word [esp + 0x288], cx
call fcn.10059a00
sub ebx, esi
add esp, 0xc
sar ebx, 1
add ebx, 2
push ebx
push esi
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
xor eax, eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], cx
call fcn.10059a00
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push eax
push edi
lea esi, [esp + 0x5c]
call fcn.10025620
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x100255e0
cmp ebx, 1
je 0x100255e0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10025592
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push esi
push 0x200
push edx
push eax
call fcn.1009f830
or eax, edx
jne 0x100255a6
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
push ecx
lea edi, [ebx + 0x70]
mov dword [esp + 0x18], 0xffffffff
call fcn.10026b90
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, edx
or eax, esi
mov eax, dword [esp + 0x60]
jne 0x10025465
mov edi, ecx
or edi, eax
je 0x100255b6
movzx edi, byte [esp + 0x63]
push edi
movzx edi, byte [esp + 0x66]
push edi
movzx edi, ah
push edi
movzx eax, al
push eax
movzx eax, byte [esp + 0x6f]
push eax
movzx eax, byte [esp + 0x72]
push eax
movzx eax, ch
push eax
movzx eax, word [esp + 0x76]
movzx ecx, cl
push ecx
push eax
movzx ecx, si
push ecx
push edx
lea edx, [esp + 0x2a8]
push edx
lea eax, [esp + 0xa4]
push str._s_08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x.vdi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [esp + 0x8c]
push ecx
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x1002554a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100255c3
push 0x208
lea edx, [esp + 0x78]
push 0
push edx
call fcn.10059a00
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
test edi, edi
jl 0x100252b4
cmp edi, 1
je 0x100252b4
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [esp + 0x8c]
push ecx
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
je 0x10025592
xor eax, eax
lea edx, [esp + 0x28]
push edx
push edi
lea esi, [esp + 0x5c]
mov ecx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.10025620
mov ebx, eax
test ebx, ebx
jl 0x100255e0
xor esi, esi
jmp 0x100253e6
call fcn.10002c20
lea esi, [esp + 0x14]
mov edi, eax
call fcn.1000fcc0
mov eax, edi
jmp 0x100255f2
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov eax, 0xe0034004
jmp 0x100255f2
lea esi, [esp + 0x14]
call fcn.1000fcc0
xor eax, eax
jmp 0x100255f2
test eax, eax
jle 0x100255d1
and eax, 0xffff
or eax, 0x80070000
lea esi, [esp + 0x14]
mov edi, eax
call fcn.1000fcc0
mov eax, edi
jmp 0x100255f2
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov eax, ebx
jmp 0x100255f2
mov eax, 0x80070057
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.1005710f
add esp, 0x480
ret 8