Function at 0x10a123f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov ecx, dword [ebp + 8]
xor edx, edx
cmp word [ebp + 0x14], 1
push esi
mov esi, dword [ecx + 0x34]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], esi
mov word [edi + 6], dx
mov dword [edi], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
jne 0x10a128b
mov ecx, dword [edi + 0x14]
cmp word [ecx + 0xa0], dx
je 0x10a128b
xor ax, ax
jmp 0x10a18cd
mov esi, dword [ebp + 0x10]
cmp word [esi + 0xa2], dx
je 0x10a129e
mov dword [ebp - 8], 0x1000000
test byte [esi + 0x41], 4
je 0x10a12a8
or byte [ebp - 6], 0x20
cmp word [ebp + 0x14], 1
push ebx
jne 0x10a12dc
mov ebx, dword [esi + 0x80]
cmp ebx, edx
je 0x10a12dc
mov cx, word [esi + 0x88]
mov word [eax + 0x24a], cx
mov ecx, dword [esi + 0x84]
mov dword [eax + 0x24c], ecx
mov dword [ebp - 4], edx
jmp 0x10a1641
mov eax, dword [esi + 0x7c]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push 0x1011c24
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10a133c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1011d38
push ebx
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.01099d30
test eax, eax
je 0x10a133c
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 1
xor ebx, ebx
mov dword [ebp - 4], eax
push 0
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010a7a67
test ax, ax
je 0x10a135e
or ax, 0xffff
jmp 0x10a18cc
cmp word [ebp + 0x14], 2
jne 0x10a1370
push dword [ebp + 0x10]
call fcn.010a664c
mov dword [ebp + 0x10], eax
and dword [ebp + 0xc], 0
test ebx, ebx
je 0x10a13df
push 0x1005ec4
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10a13ad
push dword [ebp + 8]
call fcn.010a7422
push 0
push 1
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010a7a67
test ax, ax
je 0x10a13bf
jmp 0x10a1355
push 0x1011ed4
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10a13c6
mov dword [ebp + 0xc], 1
push 0x1011ebc
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10a13df
mov dword [ebp + 0xc], 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
call fcn.010a09ac
and dword [ebp - 4], 0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10a14d2
test byte [esi + 0x41], 4
je 0x10a142c
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.010a0329
test ax, ax
je 0x10a142c
mov si, ax
jmp 0x10a15dd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test byte [eax + 0x9d], 0x10
je 0x10a1444
cmp dword [ebp - 4], 0xc0000004
je 0x10a1456
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x3c], 0
jne 0x10a1489
cmp dword [ebp - 4], 0x80000007
jne 0x10a1489
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
and eax, 0xffdfffff
or eax, 0x100000
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
call fcn.010a09ac
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10a14bf
mov eax, dword [ebp - 8]
and eax, 0xffefffff
or eax, 0x200000
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
call fcn.010a09ac
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10a14d2
test byte [ebp - 6], 0x10
je 0x10a14c9
and byte [esi + 0x41], 0xef
and dword [ebp - 4], 0
jmp 0x10a1585
xor eax, eax
cmp dword [ebp - 4], 0xc0000004
mov ecx, edi
sete al
push eax
mov eax, dword [ebp - 0xc]
call fcn.010a091e
cmp ax, 0xfe11
mov dword [ebp - 4], eax
jne 0x10a1585
cmp word [ebp + 0x14], 0
jne 0x10a1585
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp word [eax + 0xe], 0
je 0x10a1585
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
push 0
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
call fcn.010a09ac
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10a1545
mov eax, dword [ebp - 0xc]
push 0
mov ecx, edi
call fcn.010a091e
test ax, ax
mov dword [ebp - 4], eax
jne 0x10a15ed
push 0x7fffffff
push 0xffffffffffffffff
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x10a1571
mov word [edi + 6], 1
or byte [esi + 0x8e], 1
mov dword [ebp - 4], 0xfffffe10
jmp 0x10a1585
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffe11
cmp ebx, 0xffffffff
jne 0x10a163a
cmp word [ebp + 0x14], 1
je 0x10a166a
cmp word [ebp + 0x14], 2
jne 0x10a15ed
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.0108e0a1
test ax, ax
jne 0x10a15d9
mov eax, dword [edi + 0x14]
mov al, byte [eax + 0x2a]
cmp al, 5
je 0x10a15d9
cmp al, 7
je 0x10a15d9
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.0108e2b5
test ax, ax
je 0x10a15ed
mov si, 0xfe38
push dword [ebp + 8]
call fcn.010a7422
mov ax, si
jmp 0x10a18cc
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0xe]
push eax
push esi
mov eax, edi
call fcn.010a0bfc
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10a1609
and dword [ebp - 4], 0
jmp 0x10a163a
cmp word [ebp + 0xe], 0
je 0x10a1621
push dword [ebp + 8]
call fcn.010a7422
mov ax, 0xfe38
jmp 0x10a18cc
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.0108e0a1
test ax, ax
je 0x10a163a
mov dword [ebp - 4], 0xfffffe05
cmp word [ebp + 0x14], 1
jne 0x10a166a
cmp ebx, 0xffffffff
je 0x10a166a
mov eax, dword [esi + 0x40]
test ah, 2
je 0x10a166a
test ah, 0x40
je 0x10a166a
xor eax, eax
push eax
lea ecx, [ebp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push 0x900c4
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp word [ebp + 0x14], 0
jne 0x10a16a5
cmp ebx, 0xffffffff
je 0x10a16a5
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x10a1693
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10a16a5
mov ecx, dword [ebp - 0x18]
xor eax, eax
or eax, dword [ebp + 0xc]
xor edx, edx
or ecx, edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
push dword [ebp + 8]
call fcn.010a7422
cmp word [ebp - 4], 0
je 0x10a1765
cmp word [ebp - 4], 0xfe10
je 0x10a1765
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
push 1
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push eax
call fcn.010a7a67
test ax, ax
jne 0x10a1355
push 8
push 0x1011d74
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10a1717
add dword [ebp + 0x10], 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x5c005c
jmp 0x10a1732
push 4
push 0x1005e34
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10a1732
add dword [ebp + 0x10], 8
cmp word [ebp + 0x14], 1
push dword [ebp + 0x10]
jne 0x10a1743
push 0x232f
jmp 0x10a1748
push 0x232e
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.0107f1b8
push dword [ebp + 8]
call fcn.010a7422
mov dword [ebp - 4], 0xfffffe3f
jmp 0x10a1777
mov eax, dword [edi + 0x10]
mov dword [eax], ebx
mov eax, dword [edi + 0x10]
and dword [eax + 4], 0
and dword [edi + 8], 0
xor ebx, ebx
cmp word [ebp + 0x14], bx
mov dword [esi + 0x9c], 1
mov word [esi + 0xa0], bx
jne 0x10a18c8
cmp word [ebp - 0x10], bx
jne 0x10a18c8
cmp word [ebp - 4], bx
je 0x10a17ae
cmp word [ebp - 4], 0xfe10
jne 0x10a18c8
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
je 0x10a18b7
mov ecx, dword [ebp - 0x2c]
xor edx, edx
inc edx
xor eax, eax
cmp ecx, edx
mov dword [esi + 0x9c], ecx
jbe 0x10a180f
mov ecx, dword [ebp - 0x28]
mov dword [esi + 0x94], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x98], ecx
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
mov dword [esi + 0x90], ecx
jne 0x10a180f
mov dword [esi + 0x9c], edx
cmp dword [esi + 0x9c], edx
jbe 0x10a189e
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push dword [ebp + 8]
call fcn.01099d30
cmp eax, ebx
jne 0x10a189e
push dword [esi + 0x98]
lea eax, [ebp - 0x25c]
push dword [esi + 0x94]
push dword [esi + 0x90]
push 0x1011d38
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [esi + 0x7c]
add esp, 0x14
push dword [eax + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push eax
call fcn.01099ffa
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push dword [ebp + 8]
call fcn.01099d30
xor ecx, ecx
cmp eax, ebx
setne cl
mov word [esi + 0xa0], cx
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x244], eax
jmp 0x10a18c8
mov word [esi + 0xa0], bx
mov dword [esi + 0x9c], 1
mov ax, word [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0x10