Function at 0x1000fe80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1937
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
test esi, esi
je 0x10010394
cmp word [esi], 0
je 0x10010394
test edi, edi
je 0x10010394
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
mov dword [esp + 0x34], edi
call ecx
xor eax, eax
mov dword [esp + 0x290], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x294], 1
mov edx, dword [edi]
mov ecx, dword [edx]
push 0x100c452c
push edi
call ecx
mov dword [esp + 0x28], eax
test eax, eax
jl 0x10010363
cmp eax, 1
je 0x10010363
cmp dword [esp + 0x10], 0
jne 0x1000ff56
mov dword [esp + 0x290], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, 0x80004005
jmp 0x10010399
push ebx
call fcn.10010aa0
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x1000ff73
push eax
call fcn.1005758d
add esp, 4
mov dword [ebx + 0x60], 0
mov ecx, dword [ebx + 0x14]
push 0
push 0x20000000
neg ecx
push 3
sbb ecx, ecx
push 0
and ecx, 0xc0000000
push 1
add ecx, 0xc0000000
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x14], edi
mov byte [esp + 0x290], 2
cmp edi, 0xffffffff
jne 0x1001002b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 0x14], 0
jne 0x1001004c
cmp eax, 5
je 0x1000ffd9
cmp eax, 0x20
je 0x1000ffd9
cmp eax, 0xa7
je 0x1000ffd9
cmp eax, 0x21
je 0x1000ffd9
cmp eax, 0x13
jne 0x1001004c
push 0
push 0
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x10010024
call fcn.10002c20
mov edi, eax
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001007d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1001007d
mov dword [ebx + 0x14], 1
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1001009b
call fcn.10002c20
jmp 0x1001005a
test eax, eax
jle 0x1001005a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001007d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x10010399
lea eax, [esp + 0x1c]
push eax
mov esi, edi
mov ecx, ebx
call fcn.100103c0
mov dword [esp + 0x28], eax
test eax, eax
jl 0x10010325
cmp eax, 1
je 0x10010325
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push 0x200
push ecx
push edx
call fcn.1009f830
or eax, edx
je 0x1001011a
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100100f9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xe0035003
jmp 0x10010399
cmp dword [ebx + 0x14], 0
jne 0x10010157
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x60]
call fcn.10002190
lea eax, [esp + 0x60]
push eax
lea ecx, [ebx + 0x28c]
push ecx
mov byte [esp + 0x298], 3
call fcn.100122e0
lea esi, [esp + 0x60]
mov byte [esp + 0x290], 2
call fcn.10013040
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edi
push ecx
lea edi, [ebx + 0x6c]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call fcn.100121f0
mov edx, dword [esp + 0x2c]
push edx
lea esi, [ebx + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
push 0x1ff
push ecx
lea edx, [esp + 0x85]
mov word [eax], cx
push edx
mov byte [esp + 0x88], cl
call fcn.10059a00
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
push ebx
call fcn.10010bc0
mov edi, eax
test edi, edi
jl 0x1001005c
cmp edi, 1
je 0x1001005c
cmp dword [esp + 0x88], 0x100
je 0x10010228
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010207
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xe0035001
jmp 0x10010399
lea eax, [esp + 0xb8]
call fcn.10013280
cmp eax, 2
jne 0x1001023e
mov dword [ebx + 0x48], eax
jmp 0x10010272
cmp eax, 3
jne 0x100102e6
mov dword [ebx + 0x48], eax
lea eax, [esp + 0x8c]
call fcn.1000fc30
push edx
push eax
mov esi, ebx
call fcn.10010570
mov edi, eax
test edi, edi
jl 0x1001005c
cmp edi, 1
je 0x1001005c
lea eax, [esp + 0x34]
push eax
call fcn.10012390
lea ecx, [esp + 0x34]
mov edx, ebx
mov byte [esp + 0x290], 4
call fcn.10003360
mov edi, eax
test edi, edi
jl 0x100102d8
cmp edi, 1
je 0x100102d8
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
lea eax, [esp + 0x40]
call fcn.10003070
mov edi, eax
test edi, edi
jl 0x100102d8
cmp edi, 1
je 0x100102d8
mov esi, ebx
call fcn.10010a00
mov edi, eax
test edi, edi
jne 0x100102ca
mov dword [ebx + 0x18], 1
lea esi, [esp + 0x34]
call fcn.100058e0
jmp 0x10010001
lea esi, [esp + 0x34]
call fcn.100058e0
jmp 0x1001005c
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010307
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xe0035002
jmp 0x10010399
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010346
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
jmp 0x10010399
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001037b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x28]
jmp 0x10010399
mov eax, 0x80070057
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.1005710f
mov esp, ebp
pop ebp
ret 0xc