Function at 0x10ae3a8
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x34]
xor ecx, ecx
cmp word [ebp + 0x14], 1
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edx
mov word [edi + 6], cx
mov dword [edi], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
jne 0x10ae414
mov edx, dword [edi + 0x14]
cmp word [edx + 0xa0], cx
je 0x10ae414
xor ax, ax
jmp 0x10aebdd
cmp word [esi + 0xa2], cx
je 0x10ae427
mov dword [ebp - 0x21c], 0x1000000
test byte [esi + 0x41], 4
je 0x10ae434
or byte [ebp - 0x21a], 0x20
cmp word [ebp + 0x14], 1
jne 0x10ae470
mov edx, dword [esi + 0x80]
cmp edx, ecx
je 0x10ae470
mov dword [ebp - 0x218], edx
mov dx, word [esi + 0x88]
mov word [eax + 0x24a], dx
mov edx, dword [esi + 0x84]
mov dword [eax + 0x24c], edx
mov dword [ebp - 0x210], ecx
jmp 0x10ae8dd
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x210], eax
mov eax, dword [ebx + 0xc]
push 0x1011c9c
push eax
mov dword [ebp - 0x218], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae4f6
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x1011db0
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp - 0x224]
push dword [ebp - 0x238]
push dword [ebp - 0x234]
push ebx
call fcn.010a65a0
test eax, eax
je 0x10ae4f6
mov eax, dword [eax + 0x10]
and dword [ebp - 0x210], 0
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x218], eax
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push ebx
call fcn.010b5387
test ax, ax
jne 0x10ae9b8
cmp word [ebp + 0x14], 2
jne 0x10ae534
push dword [ebp - 0x214]
call fcn.010b3e97
mov dword [ebp - 0x214], eax
and dword [ebp - 0x224], 0
cmp dword [ebp - 0x210], 0
je 0x10ae5ce
push 0x1005e44
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae58c
push ebx
call fcn.010b4ca9
push 0
push 1
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push ebx
call fcn.010b5387
test ax, ax
je 0x10ae5a3
jmp 0x10ae9b8
push 0x1011f4c
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae5ad
mov dword [ebp - 0x224], 1
push 0x1011f34
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae5ce
mov dword [ebp - 0x224], 1
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010ad99f
and dword [ebp - 0x210], 0
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10ae718
test byte [esi + 0x41], 4
je 0x10ae635
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
push esi
push dword [ebp - 0x214]
push ebx
call fcn.010ad1d4
test ax, ax
je 0x10ae635
mov si, ax
jmp 0x10ae85e
mov eax, dword [ebx + 0x14]
test byte [eax + 0x9d], 0x10
je 0x10ae64d
cmp dword [ebp - 0x210], 0xc0000004
je 0x10ae665
mov eax, dword [ebp - 0x22c]
cmp dword [eax + 0x3c], 0
jne 0x10ae6b1
cmp dword [ebp - 0x210], 0x80000007
jne 0x10ae6b1
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x21c]
and eax, 0xffdfffff
or eax, 0x100000
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010ad99f
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
jne 0x10ae6ff
mov eax, dword [ebp - 0x21c]
and eax, 0xffefffff
or eax, 0x200000
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010ad99f
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10ae718
test byte [ebp - 0x21a], 0x10
je 0x10ae70c
and byte [esi + 0x41], 0xef
and dword [ebp - 0x210], 0
jmp 0x10ae7f6
xor eax, eax
cmp dword [ebp - 0x210], 0xc0000004
mov ecx, edi
sete al
push eax
mov eax, dword [ebp - 0x228]
call fcn.010ad907
cmp ax, 0xfe11
mov dword [ebp - 0x210], eax
jne 0x10ae7f6
cmp word [ebp + 0x14], 0
jne 0x10ae7f6
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xe], 0
je 0x10ae7f6
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push 1
push 0
push dword [ebp - 0x214]
push esi
push edi
push ebx
call fcn.010ad99f
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
jne 0x10ae7a6
mov eax, dword [ebp - 0x228]
push 0
mov ecx, edi
call fcn.010ad907
test ax, ax
mov dword [ebp - 0x210], eax
jne 0x10ae86c
push 0x7fffffff
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x10ae7da
mov word [edi + 6], 1
or byte [esi + 0x8e], 1
mov dword [ebp - 0x210], 0xfffffe10
jmp 0x10ae7f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x210], 0xfffffe11
cmp dword [ebp - 0x218], 0xffffffff
jne 0x10ae8d0
cmp word [ebp + 0x14], 1
je 0x10ae914
cmp word [ebp + 0x14], 2
jne 0x10ae86c
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.01099bfb
test ax, ax
jne 0x10ae854
mov eax, dword [edi + 0x14]
mov al, byte [eax + 0x2a]
cmp al, 5
je 0x10ae854
cmp al, 7
je 0x10ae854
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.01099e38
test ax, ax
je 0x10ae86c
mov ebx, dword [ebp - 0x220]
mov si, 0xfe38
push ebx
call fcn.010b4ca9
mov ax, si
jmp 0x10aebdd
mov ebx, dword [ebp - 0x214]
lea edx, [ebp - 0x21a]
mov ecx, edi
call fcn.010adbf6
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10ae893
and dword [ebp - 0x210], 0
jmp 0x10ae8d0
cmp word [ebp - 0x21a], 0
je 0x10ae8b1
push dword [ebp - 0x220]
call fcn.010b4ca9
mov ax, 0xfe38
jmp 0x10aebdd
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.01099bfb
test ax, ax
je 0x10ae8d0
mov dword [ebp - 0x210], 0xfffffe05
cmp word [ebp + 0x14], 1
mov ebx, dword [ebp - 0x220]
jne 0x10ae91a
cmp dword [ebp - 0x218], 0xffffffff
je 0x10ae91a
mov eax, dword [esi + 0x40]
test ah, 2
je 0x10ae91a
test ah, 0x40
je 0x10ae91a
xor eax, eax
push eax
lea ecx, [ebp - 0x22c]
push ecx
push eax
push eax
push eax
push eax
push 0x900c4
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x10ae91a
mov ebx, dword [ebp - 0x220]
cmp word [ebp + 0x14], 0
jne 0x10ae96a
cmp dword [ebp - 0x218], 0xffffffff
je 0x10ae96a
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x22c], eax
jne 0x10ae952
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10ae96a
mov ecx, dword [ebp - 0x23c]
xor eax, eax
or eax, dword [ebp - 0x22c]
xor edx, edx
or ecx, edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
push ebx
call fcn.010b4ca9
cmp word [ebp - 0x210], 0
je 0x10aea4a
cmp word [ebp - 0x210], 0xfe10
je 0x10aea4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 1
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x214]
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [ebx + 0xc]
push ebx
call fcn.010b5387
test ax, ax
je 0x10ae9c1
or ax, 0xffff
jmp 0x10aebdd
push 8
push 0x1011dec
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10ae9f0
add dword [ebp - 0x214], 0xc
mov eax, dword [ebp - 0x214]
mov dword [eax], 0x5c005c
jmp 0x10aea11
push 4
push 0x1005db4
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10aea11
add dword [ebp - 0x214], 8
cmp word [ebp + 0x14], 1
push dword [ebp - 0x214]
jne 0x10aea25
push 0x232f
jmp 0x10aea2a
push 0x232e
push dword [ebp - 0x220]
push 0
push ebx
call fcn.01089474
push ebx
call fcn.010b4ca9
mov dword [ebp - 0x210], 0xfffffe3f
jmp 0x10aea60
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov eax, dword [edi + 0x10]
and dword [eax + 4], 0
and dword [edi + 8], 0
and word [esi + 0xa0], 0
cmp word [ebp + 0x14], 0
mov dword [esi + 0x9c], 1
jne 0x10aebd6
cmp word [ebp - 0x230], 0
jne 0x10aebd6
cmp word [ebp - 0x210], 0
je 0x10aeaa4
cmp word [ebp - 0x210], 0xfe10
jne 0x10aebd6
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x270]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10aebb1
mov ecx, dword [ebp - 0x248]
xor edx, edx
xor eax, eax
inc edx
cmp ecx, edx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ecx
jbe 0x10aeb14
mov ecx, dword [ebp - 0x244]
mov dword [esi + 0x94], ecx
mov ecx, dword [ebp - 0x240]
mov dword [esi + 0x98], ecx
mov ecx, dword [ebp - 0x254]
test ecx, ecx
mov dword [esi + 0x90], ecx
jne 0x10aeb14
mov dword [esi + 0x9c], edx
cmp dword [esi + 0x9c], edx
jbe 0x10aeb98
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010a65a0
test eax, eax
jne 0x10aeb98
push dword [esi + 0x98]
lea eax, [ebp - 0x20c]
push dword [esi + 0x94]
push dword [esi + 0x90]
push 0x1011db0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [esi + 0x7c]
add esp, 0x14
push dword [eax + 0x18]
push dword [ebx + 0xc]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010a68dd
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010a65a0
xor ecx, ecx
test eax, eax
setne cl
mov word [esi + 0xa0], cx
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x244], eax
jmp 0x10aebd6
xor eax, eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
mov word [esi + 0xa0], ax
mov dword [esi + 0x9c], 1
mov ax, word [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x10