Function at 0x1065f8d
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x10662ab
push ebx
call fcn.01056f43
test eax, eax
je 0x10662ab
or dword [ebp - 0x418], 0xffffffff
test esi, esi
jne 0x1065fef
mov esi, 0x100d310
push 1
push 0x100d330
push esi
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.0106374b
test eax, eax
je 0x1066296
lea eax, [ebp - 0x44c]
push eax
call fcn.01062d78
test eax, eax
mov dword [ebp - 0x42c], eax
je 0x1066296
test edi, edi
lea eax, [ebp - 0x20c]
je 0x1066045
push edi
push 0x104
push eax
call fcn.01034c79
jmp 0x1066051
push 0x103
push eax
push ebx
call fcn.01059158
lea eax, [ebp - 0x20c]
push eax
push 0x100e3f0
push 4
call fcn.0105e5ad
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.01056bba
and dword [ebp - 0x434], 0
mov edi, 0x1007e00
push edi
push dword [ebp - 0x42c]
jmp 0x1066278
push esi
push 0x100e3d4
push 4
call fcn.0105e5ad
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push 0
push esi
push dword [ebp - 0x418]
call fcn.0105e74d
test eax, eax
je 0x1066275
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x428], 1
call fcn.0105e614
cmp eax, 1
mov dword [ebp - 0x438], eax
jb 0x1066275
inc dword [ebp - 0x428]
lea eax, [ebp - 0x44c]
push eax
call fcn.01062d78
test eax, eax
mov dword [ebp - 0x43c], eax
je 0x1066251
push edi
push eax
mov dword [ebp - 0x41c], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1066185
and word [esi], 0
lea ebx, [esi + 2]
movzx eax, word [ebx]
test ax, ax
je 0x1066185
cmp ax, 0x2c
je 0x1066185
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
test eax, eax
pop ecx
je 0x1066167
xor edi, edi
inc edi
movzx eax, word [esi + edi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
test eax, eax
pop ecx
jne 0x1066157
movzx eax, word [esi + edi*2]
cmp ax, 0x2e
je 0x1066157
cmp ax, 0x5f
jne 0x106615d
inc edi
cmp edi, 0x20
jb 0x1066137
and word [esi + edi*2], 0
mov edi, 0x1007e00
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x106616c
sub eax, edx
sar eax, 1
cmp eax, 2
jbe 0x1066185
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01034c79
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01034cee
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1066229
lea eax, [ebp - 0x434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x106621a
mov edx, dword [ebp - 0x434]
push eax
push dword [ebp - 0x41c]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
add dword [ebp - 0x424], ecx
push 0x100e3a0
push 4
adc dword [ebp - 0x420], edx
call fcn.0105e5ad
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x430]
jmp 0x1066245
mov ebx, dword [ebp - 0x430]
push ebx
push dword [ebp - 0x41c]
push 0x100e364
push 2
call fcn.0105e5ad
add esp, 0x10
push dword [ebp - 0x43c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [ebp - 0x44c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x1066275
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x428], eax
jbe 0x10660dd
push edi
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x106608b
push dword [ebp - 0x42c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x418], 0xffffffff
je 0x10662ab
push dword [ebp - 0x418]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000102
jne 0x10662c2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
je 0x10662d1
push eax
push ebx
push 0x100e328
push 3
jmp 0x10662df
push dword [ebp - 0x424]
push ebx
push 0x100e2ec
push 4
call fcn.0105e5ad
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0xc