Function at 0x11f27ca0
Capabilities:
Get file size

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
mov esi, dword [0x121073b0]
lea eax, [esp + 0x20]
push edi
xor edi, edi
push eax
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], esi
xor ebp, ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp ecx, edi
mov dword [esp + 0x40], ecx
jne 0x11f27cee
cmp eax, edi
je 0x11f28210
xor edx, edx
xor ebp, ebp
or edx, ecx
or eax, ebp
push esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call fcn.11e679bc
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x11f28229
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
call fcn.11e679bc
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x11f28242
mov edi, dword [esp + 0x18]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
push 0
push ebx
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
test eax, eax
ja 0x11f27d71
cmp edi, 0x200
jbe 0x11f27d78
mov esi, 0x200
jmp 0x11f27d7a
mov esi, edi
mov ecx, dword [esp + 0x90]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebp
push ebx
push ecx
mov dword [esp + 0x2c], 0
call fcn.11f30b80
add esp, 0x1c
test eax, eax
je 0x11f2825b
cmp esi, dword [esp + 0x10]
jne 0x11f28274
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20
push ebp
mov dword [ebp + 0x14], ebx
call fcn.11f2fd90
add esp, 0xc
test eax, eax
je 0x11f2828d
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [ebp + 8]
cmp eax, edx
jb 0x11f282a6
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
ja 0x11f282bf
jb 0x11f27dfa
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
ja 0x11f282bf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135d40], ebx
call esi
mov dword [0x12135d48], eax
mov eax, dword [0x12135d4c]
cmp eax, ebx
jne 0x11f27e4c
mov dword [0x12135d40], 2
mov dword [0x12135d44], 0x27e
call esi
mov dword [0x12135d48], eax
mov dword [0x12135d40], 0x1f
mov dword [0x12135d44], 0xf6d
call esi
jmp 0x11f28392
cmp dword [0x12136274], ebx
jne 0x11f27e9a
mov cl, byte [ebp + 6]
mov eax, dword [ebp + 0x10]
mov edx, dword [0x12135d58]
and ecx, 1
cmp eax, 0x2710
ja 0x11f27e7c
cmp edx, 0x2710
ja 0x11f27e9a
cmp edx, eax
je 0x11f27e9a
cmp eax, ebx
jne 0x11f27e8c
jmp 0x11f27e9a
cmp eax, edx
jne 0x11f27e8c
cmp dword [0x12135d60], ebx
ja 0x11f27e9a
cmp ecx, ebx
je 0x11f27e9a
push ecx
push eax
call fcn.11f22240
add esp, 8
cmp eax, ebx
je 0x11f27e31
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x30]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x50]
push 0x40
push eax
xor edi, edi
push ecx
push ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
call fcn.11f22900
add esp, 0x14
test eax, eax
je 0x11f282d8
mov edx, dword [esp + 0x30]
push edx
call fcn.11ee93d0
mov ecx, eax
add esp, 4
cmp ecx, edi
mov dword [esp + 0x38], ecx
je 0x11f282f1
mov ebx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, ebx
jb 0x11f27f0c
ja 0x11f27f0e
cmp edx, esi
ja 0x11f27f0e
mov esi, edx
mov dword [esp + 0x2c], edi
lea edi, [esp + 0x2c]
push edi
mov edi, dword [esp + 0x1c]
xor eax, eax
push 0x200
mov ax, word [ebp + 8]
push edi
mov edi, esi
mov edx, dword [ecx]
sub edi, eax
add eax, ebp
push edi
push eax
mov eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x64]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x11f2830a
push 0x400
mov dword [esp + 0x24], 0x400
call fcn.11e679bc
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x3c], ebx
je 0x11f28320
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ecx, esi
mov ax, word [ebp + 8]
sub ecx, eax
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push ebx
call fcn.11f90780
test eax, eax
jne 0x11f28378
cmp dword [esp + 0x20], esi
jne 0x11f28378
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x98]
push ecx
push edx
push esi
call fcn.11f30ad0
add esp, 0xc
test eax, eax
je 0x11f28336
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push ecx
push ebx
push esi
push edx
call fcn.11f30bd0
add esp, 0x14
test eax, eax
je 0x11f2834c
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jne 0x11f28362
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
xor edx, edx
sub eax, esi
sbb ecx, edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x48], ecx
jne 0x11f2803b
test eax, eax
jbe 0x11f281f7
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
cmp eax, edx
jb 0x11f281f7
ja 0x11f28053
cmp ecx, esi
jbe 0x11f281f7
sub ecx, esi
sbb eax, edx
mov ebx, ecx
mov ecx, eax
mov dword [esp + 0x44], ebx
test ecx, ecx
mov dword [esp + 0x48], ecx
ja 0x11f2806f
test ebx, ebx
jbe 0x11f281f7
xor eax, eax
cmp ecx, eax
jb 0x11f28083
ja 0x11f2807d
cmp ebx, dword [esp + 0x34]
jbe 0x11f28083
mov edi, dword [esp + 0x34]
jmp 0x11f28085
mov edi, ebx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push edi
push ebp
push ecx
push edx
call fcn.11f30b80
add esp, 0x1c
test eax, eax
je 0x11f2818e
mov esi, dword [esp + 0x10]
test esi, esi
je 0x11f281d0
cmp esi, edi
jne 0x11f281d0
xor edi, edi
test esi, esi
jbe 0x11f28121
mov ebx, dword [esp + 0x18]
sub ebx, ebp
sub esi, edi
cmp esi, 0x200
jbe 0x11f280df
mov esi, 0x200
mov ecx, dword [esp + 0x38]
lea eax, [edi + ebp]
mov edx, dword [ecx]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [ebx + eax]
push esi
push ecx
push esi
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x54]
call dword [edx + 0x14]
test eax, eax
je 0x11f28178
cmp dword [esp + 0x2c], esi
jne 0x11f28178
mov esi, dword [esp + 0x10]
add edi, 0x200
cmp edi, esi
jb 0x11f280d0
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x94]
push esi
push eax
push ecx
push edx
call fcn.11f30bd0
add esp, 0x14
test eax, eax
je 0x11f281a4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x11f281ba
sub ebx, eax
mov eax, dword [esp + 0x48]
sbb eax, 0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
jne 0x11f2816f
test ebx, ebx
jbe 0x11f281f7
mov ecx, dword [esp + 0x48]
jmp 0x11f2806f
mov dword [0x12135d40], 0x12
mov dword [0x12135d44], 0xfef
jmp 0x11f281e4
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xfda
jmp 0x11f281e4
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0xff9
jmp 0x11f281e4
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0x1000
jmp 0x11f281e4
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xfe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135d48], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x98]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x11f28397
mov dword [0x12135d40], 0x1000b
mov dword [0x12135d44], 0xf27
jmp 0x11f2838c
mov dword [0x12135d40], 0x21
mov dword [0x12135d44], 0xf30
jmp 0x11f2838c
mov dword [0x12135d40], 0x21
mov dword [0x12135d44], 0xf38
jmp 0x11f2838c
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xf45
jmp 0x11f2838c
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xf4b
jmp 0x11f2838c
mov dword [0x12135d40], 0x1c
mov dword [0x12135d44], 0xf59
jmp 0x11f2838c
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xf5f
jmp 0x11f2838c
mov dword [0x12135d40], 0x1000b
mov dword [0x12135d44], 0xf66
jmp 0x11f2838c
mov dword [0x12135d40], 0xb
mov dword [0x12135d44], 0xf7e
jmp 0x11f2838c
mov dword [0x12135d40], 0xc
mov dword [0x12135d44], 0xf85
jmp 0x11f2838c
mov dword [0x12135d40], 0x12
mov dword [0x12135d44], 0xf93
jmp 0x11f2838c
mov dword [0x12135d40], 0x21
mov dword [0x12135d44], 0xf9e
jmp 0x11f2838c
mov dword [0x12135d40], 0x25
mov dword [0x12135d44], 0xfae
jmp 0x11f2838c
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0xfbb
jmp 0x11f2838c
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0xfc1
jmp 0x11f2838c
mov dword [0x12135d40], 0x1000a
mov dword [0x12135d44], 0xfa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135d48], eax
mov ecx, dword [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test ebp, ebp
je 0x11f283b2
push ebp
call fcn.11e679b1
add esp, 4
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x11f283c7
push eax
call fcn.11e679b1
add esp, 4
mov eax, dword [esp + 8]
test eax, eax
je 0x11f283d8
push eax
call fcn.11e679b1
add esp, 4
mov eax, dword [esp + 4]
add esp, 0x7c
ret