Function at 0x12fb2000
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x130710bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
mov esi, dword [esp + 0xb4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x1f4]
push edx
mov edx, dword [esi + 0x1ec]
lea eax, [esp + 0x64]
push 0x40
push eax
mov eax, dword [esi + 0x20]
push ecx
push edx
push eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebx
call fcn.12fbfda0
add esp, 0x20
cmp eax, ebx
mov dword [esp + 0x48], eax
je 0x12fb26bd
push eax
call fcn.12ff0660
add esp, 4
cmp eax, ebx
mov dword [esp + 0x50], eax
je 0x12fb26d9
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0xac]
push ecx
push eax
push edi
mov dword [esp + 0x20], eax
call fcn.12fee810
add esp, 0xc
test eax, eax
je 0x12fb26f5
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0xb0]
cmp eax, ebx
mov dword [edx], 1
je 0x12fb20fa
mov eax, dword [ebp + 0x24]
or al, 8
mov dword [ebp + 0x24], eax
cmp dword [esp + 0x38], ebx
je 0x12fb2108
mov eax, dword [ebp + 0x24]
or al, 0x10
mov dword [ebp + 0x24], eax
cmp dword [esp + 0xa8], 0xffffffff
jne 0x12fb2131
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x3737
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x28]
mov dword [esi + 0x24], edx
push eax
lea edx, [esp + 0x5c]
push ecx
push edx
mov dword [esi + 0x10], ebx
call fcn.12fedb10
mov eax, dword [esp + 0xb4]
add esp, 0xc
mov dword [esi + 0x38], 0x3e0
mov dword [esi + 0x3c], ebx
push ebx
push ebx
push ebx
push eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x378], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, ebx
je 0x12fb21c9
mov edx, dword [0x13182838]
mov ecx, ebp
mov dword [ecx], edx
mov eax, dword [0x1318283c]
mov dword [ecx + 4], eax
mov edx, dword [0x13182840]
mov dword [ecx + 8], edx
mov eax, dword [0x13182844]
mov dword [ecx + 0xc], eax
cmp edi, 0xffffffff
je 0x12fb222d
cmp ebp, ebx
je 0x12fb222d
lea ecx, [esp + 0x14]
push ebx
push ecx
push 0x3e0
push ebp
push edi
mov dword [esp + 0x28], ebx
call fcn.12fecff0
add esp, 0x14
test eax, eax
jne 0x12fb2243
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x14a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0x10
mov dword [0x131c8f3c], 0x1836
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb269b
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x149e
jmp 0x12fb2203
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
jne 0x12fb2268
cmp dword [esi + 0x1c], ebx
jne 0x12fb2268
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], ebx
jmp 0x12fb24ef
mov ecx, dword [esi + 0x1c]
mov ebp, 0x10000
cmp ecx, ebx
jne 0x12fb227a
cmp eax, ebp
jae 0x12fb227a
mov ebp, eax
push ebp
call fcn.12f5bf8b
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
push ebp
call dword [edx + 8]
add eax, 4
push eax
mov dword [esp + 0x50], eax
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x38]
push ebx
push ebx
push eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebx
push eax
push ebp
push edi
push ecx
call fcn.12fecef0
add esp, 0x18
test eax, eax
je 0x12fb23eb
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jae 0x12fb232d
cmp eax, ebx
mov dword [esp + 0x20], 1
je 0x12fb24b2
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x74]
push eax
push ecx
push edx
mov dword [esp + 0x50], ebx
call fcn.12fba890
add esp, 0x28
cmp eax, ebx
jne 0x12fb2404
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add ecx, 4
push eax
push ecx
call fcn.12fedaf0
mov edx, dword [esp + 0x24]
push ebx
mov dword [edx], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x50]
add ecx, 4
push eax
mov eax, dword [esp + 0xbc]
push ecx
push edx
push eax
mov dword [esp + 0x60], ebx
call fcn.12fecff0
add esp, 0x1c
test eax, eax
je 0x12fb2475
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
add ecx, 4
cmp eax, ecx
jb 0x12fb248b
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jne 0x12fb23cf
mov dword [esi + 0x40], ecx
inc eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x12fb22be
mov edi, dword [esp + 0x10]
jmp 0x12fb24b2
mov dword [0x131c8f38], 0xd
mov dword [0x131c8f3c], 0x1860
jmp 0x12fb249f
jge 0x12fb245f
push 0x131911a8
lea ecx, [esp + 0x14]
call fcn.12f46a80
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
push 0x1875
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push 0x13182948
push edx
mov dword [esp + 0xb8], ebx
call fcn.12f4a1a0
mov eax, dword [esp + 0x28]
push eax
call fcn.12ff1500
add esp, 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.12f47220
mov dword [0x131c8f38], 0x11
mov dword [0x131c8f3c], 0x1879
jmp 0x12fb249f
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x1883
jmp 0x12fb249f
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x188a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov dword [esp + 0x18], 1
cmp edi, ebx
je 0x12fb24bf
push edi
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x12fb24d0
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x12fb24e1
push eax
call fcn.12f5bf80
add esp, 4
mov ebp, dword [esp + 0xb0]
mov edi, dword [esp + 0xac]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x20], ebx
je 0x12fb26a0
cmp dword [esp + 0x18], ebx
jne 0x12fb26a0
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x40], 1
cmp eax, ebx
je 0x12fb2608
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jne 0x12fb253a
mov dword [esi + 0x378], 0x3e0
mov dword [esi + 0x37c], ebx
jmp 0x12fb256a
mov ecx, dword [esi + 0x40]
push ebx
dec eax
push ecx
push ebx
push eax
call fcn.12f618d0
mov ecx, dword [esi + 0x44]
xor edi, edi
add eax, ecx
adc edx, edi
mov edi, dword [esp + 0xac]
add eax, 0x3e0
adc edx, ebx
mov dword [esi + 0x378], eax
mov dword [esi + 0x37c], edx
mov edx, dword [esp + 0xb8]
mov eax, dword [ebp + 0x20]
push edx
push esi
push eax
push edi
call fcn.12fb07f0
add esp, 0x10
test eax, eax
je 0x12fb25e9
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.12fc2120
add esp, 4
test eax, eax
mov eax, dword [ebp + 0x24]
je 0x12fb259f
and al, 0xdf
jmp 0x12fb25a1
or al, 0x20
mov edx, dword [esp + 0xb8]
mov ecx, eax
or ecx, 4
mov dword [ebp + 0x24], eax
push edx
mov dword [ebp + 0x24], ecx
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fb25c8
mov eax, dword [ebp + 0x24]
or al, 1
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0xb8]
add eax, 0x10
push eax
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fb2608
mov eax, dword [ebp + 0x24]
or al, 2
mov dword [ebp + 0x24], eax
jmp 0x12fb2608
mov dword [0x131c8f38], 0x10
mov dword [0x131c8f3c], 0x18d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov edx, dword [0x13182824]
mov ecx, ebp
push esi
push ebp
mov dword [ecx], edx
mov eax, dword [0x13182828]
mov dword [ecx + 4], eax
mov edx, dword [0x1318282c]
mov dword [ecx + 8], edx
mov eax, dword [0x13182830]
mov dword [ecx + 0xc], eax
call fcn.12fba060
add esp, 8
test eax, eax
je 0x12fb2711
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x34]
push ebx
push ecx
push 0x3e0
push ebp
push edi
mov dword [esp + 0x48], ebx
call fcn.12fecff0
add esp, 0x14
test eax, eax
jne 0x12fb26a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x14a6
call esi
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0x10
mov dword [0x131c8f3c], 0x18e3
call esi
mov dword [0x131c8f40], eax
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret
mov dword [0x131c8f38], 0xb
mov dword [0x131c8f3c], 0x17f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb269b
mov dword [0x131c8f38], 0xc
mov dword [0x131c8f3c], 0x17fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb269b
mov dword [0x131c8f38], 0x25
mov dword [0x131c8f3c], 0x180c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb269b
mov dword [0x131c8f38], 0x13
mov dword [0x131c8f3c], 0x18db
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb269b