Function at 0x102dea0
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x1048628]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x102e166
push ebx
call fcn.010257cb
test eax, eax
je 0x102e166
or dword [ebp - 0x418], 0xffffffff
test esi, esi
jne 0x102df00
mov esi, 0x1006864
push 1
push 0x1006884
push esi
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.0102c82f
test eax, eax
je 0x102e151
lea eax, [ebp - 0x44c]
push eax
call fcn.0102bd09
test eax, eax
mov dword [ebp - 0x42c], eax
je 0x102e151
test edi, edi
mov esi, 0x103
lea eax, [ebp - 0x20c]
push esi
je 0x102df5b
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
jmp 0x102df62
push eax
push ebx
call fcn.010272ee
lea eax, [ebp - 0x20c]
push eax
push 0x100767c
push 5
call fcn.0102ae85
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.0102534f
and dword [ebp - 0x434], 0
mov ebx, 0x1003db8
push ebx
push dword [ebp - 0x42c]
jmp 0x102e12d
push edi
push 0x1007660
push 5
call fcn.0102ae85
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push 0
push edi
push dword [ebp - 0x418]
call fcn.0103d846
test eax, eax
je 0x102e12a
push edi
push dword [ebp - 0x418]
mov dword [ebp - 0x424], 1
call fcn.0103d55d
cmp eax, 1
mov dword [ebp - 0x43c], eax
jb 0x102e12a
inc dword [ebp - 0x424]
lea eax, [ebp - 0x44c]
push eax
call fcn.0102bd09
mov edi, eax
test edi, edi
mov dword [ebp - 0x428], edi
je 0x102e106
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x102e022
and word [eax], 0
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x414]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x1c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x414]
push eax
call fcn.0101a677
mov edi, eax
cmp edi, 0xffffffff
je 0x102e0df
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x430], eax
je 0x102e0d6
push dword [ebp - 0x430]
mov ecx, dword [ebp - 0x434]
push dword [ebp - 0x428]
xor eax, eax
or eax, dword [ebp - 0x430]
xor edx, edx
or ecx, edx
add dword [ebp - 0x420], eax
push 0x100762c
push 5
adc dword [ebp - 0x41c], ecx
call fcn.0102ae85
add esp, 0x10
mov ebx, 0x1003db8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x102e0fa
push dword [ebp - 0x438]
push dword [ebp - 0x428]
push 0x10075fc
push 2
call fcn.0102ae85
add esp, 0x10
push dword [ebp - 0x428]
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 0x102e12a
mov eax, dword [ebp - 0x43c]
cmp dword [ebp - 0x424], eax
jbe 0x102dfee
push ebx
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x102df9c
push dword [ebp - 0x42c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ebx, dword [ebp - 0x438]
pop ecx
cmp dword [ebp - 0x418], 0xffffffff
je 0x102e166
push dword [ebp - 0x418]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000102
jne 0x102e17d
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
je 0x102e18c
push eax
push ebx
push 0x10075c0
push 3
jmp 0x102e19a
push dword [ebp - 0x420]
push ebx
push 0x1007584
push 5
call fcn.0102ae85
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
mov edx, dword [ebp - 0x41c]
add esp, 0x10
pop edi
pop esi
pop ebx
call fcn.01018732
leave
ret 0xc