Function at 0x106337b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x1072c48]
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 0x10636a3
push ebx
call fcn.010561eb
test eax, eax
je 0x10636a3
or dword [ebp - 0x418], 0xffffffff
test esi, esi
jne 0x10633dd
mov esi, 0x100c900
push 1
push 0x100c920
push esi
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.01060c0b
test eax, eax
je 0x106368e
lea eax, [ebp - 0x44c]
push eax
call fcn.0106058d
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x106368e
lea eax, [ebp - 0x20c]
test edi, edi
je 0x1063433
push edi
push 0x104
push eax
call fcn.01035831
jmp 0x106343f
push 0x103
push eax
push ebx
call fcn.01058203
lea eax, [ebp - 0x20c]
push eax
push 0x100d930
push 4
call fcn.01055c8a
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e5e
and dword [ebp - 0x434], 0
mov edi, 0x1007d6c
push edi
push dword [ebp - 0x42c]
jmp 0x1063670
push esi
push 0x100d914
push 4
call fcn.01055c8a
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push 0
push esi
push dword [ebp - 0x418]
call fcn.0105c6af
test eax, eax
je 0x106366d
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x428], 1
call fcn.0105c576
mov dword [ebp - 0x438], eax
cmp eax, 1
jb 0x106366d
inc dword [ebp - 0x428]
lea eax, [ebp - 0x44c]
push eax
call fcn.0106058d
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x1063649
push edi
push eax
mov dword [ebp - 0x41c], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x106357d
xor eax, eax
lea ebx, [esi + 2]
mov word [esi], ax
movzx eax, word [ebx]
xor ecx, ecx
cmp cx, ax
je 0x106357d
push 0x2c
pop ecx
cmp cx, ax
je 0x106357d
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
pop ecx
test eax, eax
je 0x106355f
xor edi, edi
inc edi
movzx eax, word [esi + edi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
pop ecx
test eax, eax
jne 0x106354e
movzx eax, word [esi + edi*2]
push 0x2e
pop ecx
cmp cx, ax
je 0x106354e
push 0x5f
pop ecx
cmp cx, ax
jne 0x1063554
inc edi
cmp edi, 0x20
jb 0x106352a
xor eax, eax
mov word [esi + edi*2], ax
mov edi, 0x1007d6c
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1063564
sub eax, edx
sar eax, 1
cmp eax, 2
jbe 0x106357d
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035831
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.010358a6
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1063621
lea eax, [ebp - 0x434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1063612
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 0x100d8e0
push 4
adc dword [ebp - 0x420], edx
call fcn.01055c8a
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x430]
jmp 0x106363d
mov ebx, dword [ebp - 0x430]
push ebx
push dword [ebp - 0x41c]
push 0x100d8a4
push 2
call fcn.01055c8a
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 0x106366d
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x428], eax
jbe 0x10634cb
push edi
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1063479
push dword [ebp - 0x42c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x418], 0xffffffff
je 0x10636a3
push dword [ebp - 0x418]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000102
jne 0x10636ba
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
je 0x10636c9
push eax
push ebx
push 0x100d868
push 3
jmp 0x10636d7
push dword [ebp - 0x424]
push ebx
push 0x100d82c
push 4
call fcn.01055c8a
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.01047480
leave
ret 0xc