Function at 0x100026a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
mov dword [esp + 0x20], edi
lea ecx, [esi - 5]
mov dword [esp + 0x10], ecx
cmp esi, ecx
jbe 0x100029a1
mov dl, byte [esp + 0xf]
add esi, 0xffffffaf
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov byte [esp + 0xf], dl
nop dword [eax]
cmp esi, 5
ja case.0x100026f9.1
jmp dword [esi*4 + 0x100029f4]
mov dword [esp + 0x1c], ebx
mov al, byte [ebx]
mov ecx, ebx
inc ebx
test al, al
jne 0x10002704
mov edx, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [edx]
test eax, eax
je 0x1000273a
mov ecx, dword [ebp + 0x10]
nop dword [eax + eax]
dec eax
mov dword [edx], eax
mov al, byte [ecx]
inc ecx
mov byte [ebx], al
inc ebx
mov dword [ebp + 0x10], ecx
test al, al
je 0x10002951
mov eax, dword [edx]
test eax, eax
jne 0x10002720
mov ecx, dword [esp + 0x18]
dec eax
mov dword [edx], eax
jmp 0x100028d7
push 0x106
call fcn.10002b20
mov ecx, eax
lea edx, [esp + 0x3c]
add esp, 4
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10002760
lea edi, [esp + 0x38]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10002772
mov ax, word [0x1001bbb4]
push 0
push 0x177
push 0
mov word [edi], ax
call fcn.10003760
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002798
lea edi, [esp + 0x38]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100027a6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x100028d3
push 0x82
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80000002
push eax
lea eax, [esp + 0x44]
push eax
call fcn.10007e10
add esp, 0x10
test al, al
je 0x10002991
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
jne 0x1000295c
movzx eax, byte [esp + 0xf]
xor ecx, ecx
cmp dword [esp + 0x18], ecx
cmovne ecx, eax
mov byte [esp + 0xf], cl
mov ecx, dword [esp + 0x18]
jmp 0x100028d7
mov eax, dword [str.MyFile]
mov dword [esp + 0x24], eax
movzx eax, word [0x1001bbbc]
mov word [esp + 0x28], ax
mov al, byte [0x1001bbbe]
mov byte [esp + 0x2a], al
lea eax, [esp + 0x2a]
push eax
push 0x1001bbc0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
push 0xc2
call fcn.10005410
lea eax, [esp + 0x34]
mov dword [esp + 0x24], 1
push eax
push 0x1001bbc4
lea eax, [esp + 0x2c]
push eax
push 0x51
call fcn.100026a0
movq xmm0, qword [str.ingObject]
add esp, 0x20
movzx eax, word [0x1001bbd0]
mov ecx, dword [esp + 0x18]
movq qword [esp + 0x2e], xmm0
mov word [esp + 0x36], ax
mov byte [esp + 0xf], 1
jmp 0x100028d7
lea eax, [esp + 0x24]
push eax
push 0x100
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x18], ecx
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100028c0
mov ax, word [0x1001bbb4]
mov word [edi], ax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
dec edi
dec esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
cmp edi, eax
ja 0x100026f0
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
lea edi, [esi + 0x27b]
cmp esi, edi
jae 0x100029e7
cmp esi, 0xd0
ja 0x100029c7
je 0x100029e7
cmp esi, 0x51
je 0x100029be
cmp esi, 0x56
jne 0x100029dc
cmp byte [esp + 0xf], 0
je 0x100029dc
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
jmp 0x100029dc
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1cc
push 0
push 0
push 0
push 0
call fcn.10006fb0
add esp, 0x14
push eax
push 0
push ebx
push 0x1f0
call fcn.10004600
mov byte [esp + 0x20], al
add esp, 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0xf]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov byte [esp + 0xf], al
jmp 0x100028f4
mov byte [ebx], 0
mov dword [esp + 0x10], edx
jmp 0x100029dc
mov eax, esi
sub eax, 0xd5
je 0x100029d7
sub eax, 0x7f
je 0x100029e7
jmp 0x100029dc
mov byte [esp + 0x10], 1
add esi, 0x7f
cmp esi, edi
jb 0x10002902
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret