Function at 0x10ae1ed
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 0x10ae259
mov edx, dword [edi + 0x14]
cmp word [edx + 0xa0], cx
je 0x10ae259
xor ax, ax
jmp 0x10aea22
cmp word [esi + 0xa2], cx
je 0x10ae26c
mov dword [ebp - 0x21c], reloc.GDI32.dll_CreateBitmap
test byte [esi + 0x41], 4
je 0x10ae279
or byte [ebp - 0x21a], 0x20
cmp word [ebp + 0x14], 1
jne 0x10ae2b5
mov edx, dword [esi + 0x80]
cmp edx, ecx
je 0x10ae2b5
mov dword [ebp - 0x218], edx
mov dx, word [esi + 0x88]
mov word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], dx
mov edx, dword [esi + 0x84]
mov dword [eax + 0x24c], edx
mov dword [ebp - 0x210], ecx
jmp 0x10ae722
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x210], eax
mov eax, dword [ebx + 0xc]
push 0x1011c84
push eax
mov dword [ebp - 0x218], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae33b
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x1011d98
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.010a63e5
test eax, eax
je 0x10ae33b
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.010b51f9
test ax, ax
jne 0x10ae7fd
cmp word [ebp + 0x14], 2
jne 0x10ae379
push dword [ebp - 0x214]
call fcn.010b3d09
mov dword [ebp - 0x214], eax
and dword [ebp - 0x224], 0
cmp dword [ebp - 0x210], 0
je 0x10ae413
push 0x1005e44
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae3d1
push ebx
call fcn.010b4b1b
push 0
push 1
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push ebx
call fcn.010b51f9
test ax, ax
je 0x10ae3e8
jmp 0x10ae7fd
push reloc.KERNEL32.dll_ReadFile
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae3f2
mov dword [ebp - 0x224], 1
push 0x1011f1c
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10ae413
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.010ad7e4
and dword [ebp - 0x210], 0
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10ae55d
test byte [esi + 0x41], 4
je 0x10ae47a
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
push esi
push dword [ebp - 0x214]
push ebx
call fcn.010ad019
test ax, ax
je 0x10ae47a
mov si, ax
jmp 0x10ae6a3
mov eax, dword [ebx + 0x14]
test byte [eax + 0x9d], 0x10
je 0x10ae492
cmp dword [ebp - 0x210], 0xc0000004
je 0x10ae4aa
mov eax, dword [ebp - 0x22c]
cmp dword [eax + 0x3c], 0
jne 0x10ae4f6
cmp dword [ebp - 0x210], 0x80000007
jne 0x10ae4f6
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x21c]
and eax, 0xffdfffff
or eax, reloc.KERNEL32.dll_GetVolumeInformationW
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.010ad7e4
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
jne 0x10ae544
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.010ad7e4
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10ae55d
test byte [ebp - 0x21a], 0x10
je 0x10ae551
and byte [esi + 0x41], 0xef
and dword [ebp - 0x210], 0
jmp 0x10ae63b
xor eax, eax
cmp dword [ebp - 0x210], 0xc0000004
mov ecx, edi
sete al
push eax
mov eax, dword [ebp - 0x228]
call fcn.010ad74c
cmp ax, 0xfe11
mov dword [ebp - 0x210], eax
jne 0x10ae63b
cmp word [ebp + 0x14], 0
jne 0x10ae63b
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xe], 0
je 0x10ae63b
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.010ad7e4
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
jne 0x10ae5eb
mov eax, dword [ebp - 0x228]
push 0
mov ecx, edi
call fcn.010ad74c
test ax, ax
mov dword [ebp - 0x210], eax
jne 0x10ae6b1
push WaitForSingleObject
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x10ae61f
mov word [edi + 6], 1
or byte [esi + 0x8e], 1
mov dword [ebp - 0x210], 0xfffffe10
jmp 0x10ae63b
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 0x10ae715
cmp word [ebp + 0x14], 1
je 0x10ae759
cmp word [ebp + 0x14], 2
jne 0x10ae6b1
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.01099a6d
test ax, ax
jne 0x10ae699
mov eax, dword [edi + 0x14]
mov al, byte [eax + 0x2a]
cmp al, 5
je 0x10ae699
cmp al, 7
je 0x10ae699
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.01099caa
test ax, ax
je 0x10ae6b1
mov ebx, dword [ebp - 0x220]
mov si, 0xfe38
push ebx
call fcn.010b4b1b
mov ax, si
jmp 0x10aea22
mov ebx, dword [ebp - 0x214]
lea edx, [ebp - 0x21a]
mov ecx, edi
call fcn.010ada3b
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x10ae6d8
and dword [ebp - 0x210], 0
jmp 0x10ae715
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10ae6f6
push dword [ebp - 0x220]
call fcn.010b4b1b
mov ax, 0xfe38
jmp 0x10aea22
push dword [ebp - 0x214]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.01099a6d
test ax, ax
je 0x10ae715
mov dword [ebp - 0x210], 0xfffffe05
cmp word [ebp + 0x14], 1
mov ebx, dword [ebp - 0x220]
jne 0x10ae75f
cmp dword [ebp - 0x218], 0xffffffff
je 0x10ae75f
mov eax, dword [esi + 0x40]
test ah, 2
je 0x10ae75f
test ah, 0x40
je 0x10ae75f
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 0x10ae75f
mov ebx, dword [ebp - 0x220]
cmp word [ebp + 0x14], 0
jne 0x10ae7af
cmp dword [ebp - 0x218], 0xffffffff
je 0x10ae7af
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 0x10ae797
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10ae7af
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.010b4b1b
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10ae88f
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0xfe10
je 0x10ae88f
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.010b51f9
test ax, ax
je 0x10ae806
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10aea22
push 8
push 0x1011dd4
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10ae835
add dword [ebp - 0x214], 0xc
mov eax, dword [ebp - 0x214]
mov dword [eax], 0x5c005c
jmp 0x10ae856
push 4
push 0x1005db4
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10ae856
add dword [ebp - 0x214], 8
cmp word [ebp + 0x14], 1
push dword [ebp - 0x214]
jne 0x10ae86a
push 0x232f
jmp 0x10ae86f
push 0x232e
push dword [ebp - 0x220]
push 0
push ebx
call fcn.010892e6
push ebx
call fcn.010b4b1b
mov dword [ebp - 0x210], 0xfffffe3f
jmp 0x10ae8a5
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 0x10aea1b
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10aea1b
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10ae8e9
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0xfe10
jne 0x10aea1b
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 0x10ae9f6
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 0x10ae959
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 0x10ae959
mov dword [esi + 0x9c], edx
cmp dword [esi + 0x9c], edx
jbe 0x10ae9dd
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010a63e5
test eax, eax
jne 0x10ae9dd
push dword [esi + 0x98]
lea eax, [ebp - 0x20c]
push dword [esi + 0x94]
push dword [esi + 0x90]
push 0x1011d98
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.010a6722
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push ebx
call fcn.010a63e5
xor ecx, ecx
test eax, eax
setne cl
mov word [esi + 0xa0], cx
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x244], eax
jmp 0x10aea1b
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 - reloc.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0x10