Function at 0x11f27610
Capabilities:
Get file size

Disassembly:
sub esp, 0x8c
mov ecx, dword [esp + 0x94]
push ebx
push ebp
push esi
lea eax, [esp + 0x30]
push edi
mov edi, dword [0x121073b0]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x34]
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x11f2765d
cmp ecx, ebp
je 0x11f27b1c
xor edx, edx
xor ebx, ebx
or ecx, edx
or ebx, eax
mov esi, ecx
push edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
call fcn.11e679bc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x11f27b35
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
ja 0x11f276b6
cmp ebx, 0x200
jbe 0x11f276bb
mov ebx, 0x200
mov ecx, dword [esp + 0xa0]
push 0
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ebp
push edi
push ecx
mov dword [esp + 0x30], 0
call fcn.11f30b80
add esp, 0x1c
test eax, eax
je 0x11f27b4e
cmp ebx, dword [esp + 0x14]
jne 0x11f27b67
lea esi, [ebx + ebx]
push esi
call fcn.11e679bc
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x28], edi
je 0x11f27b80
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x28], esi
call fcn.11f90760
test eax, eax
jne 0x11f27b99
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0x20
cmp eax, ecx
ja 0x11f27bb2
mov ecx, 0x80
xor eax, eax
mov edi, ebp
mov esi, 0x121073a8
rep stosd dword es:[edi], eax
mov edi, 0x121073a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + 4], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp + 5], al
mov eax, dword [0x12135d58]
mov dword [ebp + 0x10], eax
mov edx, dword [0x12135d5c]
mov ecx, dword [0x12135d60]
xor esi, esi
xor eax, eax
cmp edx, esi
je 0x11f277ac
mov eax, 2
cmp ecx, esi
je 0x11f277b2
or al, 1
mov ecx, dword [esp + 0x3c]
mov byte [ebp + 6], al
mov dword [ebp + 0x14], esi
mov byte [ebp + 7], 0xe
mov byte [ebp + 0xa], 0
mov byte [ebp + 0xb], 0
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x18], ecx
sub ebx, edx
mov edx, dword [esp + 0x40]
mov word [ebp + 8], bx
mov dword [ebp + 0x1c], edx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x12135d60]
lea ecx, [esp + 0x44]
stosb byte es:[edi], al
lea eax, [esp + 0x58]
mov dword [esp + 0x44], esi
push eax
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x68]
push 0x40
push ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x38], esi
push edx
mov edx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ebp + 5]
push edx
push eax
call fcn.11f21920
mov ebx, eax
xor ecx, ecx
mov byte [ebp + 7], bl
mov dword [esp + 0x69], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6d], ecx
mov dword [esp + 0x71], ecx
lea edx, [esp + 0x68]
mov word [esp + 0x75], cx
push edx
mov byte [esp + 0x7b], cl
lea ecx, [esp + 0x80]
push eax
push ecx
mov byte [esp + 0x74], 0
call fcn.11f2fe00
mov edx, dword [esp + 0x74]
push 0x20
push ebp
mov dword [ebp + 0xc], edx
call fcn.11f2fde0
mov esi, dword [esp + 0x5c]
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x4c]
xor edi, edi
mov di, word [ebp + 8]
mov eax, ecx
add edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.11ee93d0
mov ebx, eax
xor edi, edi
add esp, 0x38
cmp ebx, edi
je 0x11f27bcb
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xa8]
push ecx
push edx
push esi
call fcn.11f30ad0
add esp, 0xc
test eax, eax
je 0x11f27be1
mov eax, dword [esp + 0xac]
push edi
push edi
push edi
push esi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
mov dword [esp + 0x30], edi
mov cx, word [ebp + 8]
mov edx, dword [ebx]
lea eax, [ecx + ebp]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push ecx
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x10]
test eax, eax
je 0x11f27bf7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp edx, eax
jne 0x11f27c0d
xor eax, eax
mov ax, word [ebp + 8]
push eax
push 0x20
push ebp
call fcn.11f28db0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edi
push ecx
push edx
push ebp
push esi
push eax
call fcn.11f30bd0
add esp, 0x20
test eax, eax
je 0x11f27c23
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jne 0x11f27c39
mov eax, dword [esp + 0x3c]
xor edx, edx
sub eax, ecx
mov ecx, dword [esp + 0x40]
sbb ecx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x11f2798d
cmp eax, edi
jbe 0x11f27b08
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, ecx
jb 0x11f279a5
ja 0x11f2799f
cmp eax, dword [esp + 0x38]
jbe 0x11f279a5
mov edi, dword [esp + 0x38]
jmp 0x11f279a7
mov edi, eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
push 0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
push ecx
push edx
call fcn.11f30b80
add esp, 0x1c
test eax, eax
je 0x11f27a9f
mov esi, dword [esp + 0x14]
test esi, esi
je 0x11f27ae1
cmp esi, edi
jne 0x11f27ae1
xor edi, edi
test esi, esi
jbe 0x11f27a30
sub esi, edi
cmp esi, 0x200
jbe 0x11f279fb
mov esi, 0x200
lea ecx, [esp + 0x30]
lea eax, [edi + ebp]
mov edx, dword [ebx]
push ecx
push esi
push eax
push esi
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x10]
test eax, eax
je 0x11f27a89
cmp esi, dword [esp + 0x30]
jne 0x11f27a89
mov esi, dword [esp + 0x14]
add edi, 0x200
cmp edi, esi
jb 0x11f279ec
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
lea edx, [esp + 0x2c]
push edx
push esi
push ebp
push eax
push ecx
call fcn.11f30bd0
add esp, 0x14
test eax, eax
je 0x11f27ab5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x11f27acb
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x20]
sbb eax, 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jne 0x11f27a80
mov eax, ecx
test eax, eax
jbe 0x11f27b08
mov eax, dword [esp + 0x1c]
jmp 0x11f2798d
mov dword [0x12135d40], 0x11
mov dword [0x12135d44], 0xef0
jmp 0x11f27af5
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xedd
jmp 0x11f27af5
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0xefa
jmp 0x11f27af5
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0xf01
jmp 0x11f27af5
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135d48], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x10], edx
jmp 0x11f27c58
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xe3b
jmp 0x11f27c4d
mov dword [0x12135d40], 0x21
mov dword [0x12135d44], 0xe44
jmp 0x11f27c4d
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xe51
jmp 0x11f27c4d
mov dword [0x12135d40], 0xd
mov dword [0x12135d44], 0xe57
jmp 0x11f27c4d
mov dword [0x12135d40], 0x21
mov dword [0x12135d44], 0xe61
jmp 0x11f27c4d
mov dword [0x12135d40], 0x2f
mov dword [0x12135d44], 0xe6a
jmp 0x11f27c4d
mov dword [0x12135d40], 0x30
mov dword [0x12135d44], 0xe70
jmp 0x11f27c4d
mov dword [0x12135d40], 0xc
mov dword [0x12135d44], 0xe9b
jmp 0x11f27c4d
mov dword [0x12135d40], 0x25
mov dword [0x12135d44], 0xea5
jmp 0x11f27c4d
mov dword [0x12135d40], 0x11
mov dword [0x12135d44], 0xeb5
jmp 0x11f27c4d
mov dword [0x12135d40], 0x11
mov dword [0x12135d44], 0xebb
jmp 0x11f27c4d
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0xec8
jmp 0x11f27c4d
mov dword [0x12135d40], 0xe
mov dword [0x12135d44], 0xece
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135d48], eax
mov eax, dword [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test ebp, ebp
je 0x11f27c73
push ebp
call fcn.11e679b1
add esp, 4
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x11f27c88
push eax
call fcn.11e679b1
add esp, 4
mov eax, dword [esp]
add esp, 0x8c
ret