Function at 0x106335d
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 0x1063685
push ebx
call fcn.010561ca
test eax, eax
je 0x1063685
or dword [ebp - 0x418], 0xffffffff
test esi, esi
jne 0x10633bf
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.01060bed
test eax, eax
je 0x1063670
lea eax, [ebp - 0x44c]
push eax
call fcn.0106056f
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x1063670
lea eax, [ebp - 0x20c]
test edi, edi
je 0x1063415
push edi
push 0x104
push eax
call fcn.01035811
jmp 0x1063421
push 0x103
push eax
push ebx
call fcn.010581e2
lea eax, [ebp - 0x20c]
push eax
push 0x100d930
push 4
call fcn.01055c69
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e3d
and dword [ebp - 0x434], 0
mov edi, 0x1007d6c
push edi
push dword [ebp - 0x42c]
jmp 0x1063652
push esi
push 0x100d914
push 4
call fcn.01055c69
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push 0
push esi
push dword [ebp - 0x418]
call fcn.0105c68e
test eax, eax
je 0x106364f
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x428], 1
call fcn.0105c555
mov dword [ebp - 0x438], eax
cmp eax, 1
jb 0x106364f
inc dword [ebp - 0x428]
lea eax, [ebp - 0x44c]
push eax
call fcn.0106056f
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x106362b
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 0x106355f
xor eax, eax
lea ebx, [esi + 2]
mov word [esi], ax
movzx eax, word [ebx]
xor ecx, ecx
cmp cx, ax
je 0x106355f
push 0x2c
pop ecx
cmp cx, ax
je 0x106355f
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
pop ecx
test eax, eax
je 0x1063541
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 0x1063530
movzx eax, word [esi + edi*2]
push 0x2e
pop ecx
cmp cx, ax
je 0x1063530
push 0x5f
pop ecx
cmp cx, ax
jne 0x1063536
inc edi
cmp edi, 0x20
jb 0x106350c
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 0x1063546
sub eax, edx
sar eax, 1
cmp eax, 2
jbe 0x106355f
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035811
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01035886
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 0x1063603
lea eax, [ebp - 0x434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10635f4
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.01055c69
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x430]
jmp 0x106361f
mov ebx, dword [ebp - 0x430]
push ebx
push dword [ebp - 0x41c]
push 0x100d8a4
push 2
call fcn.01055c69
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 0x106364f
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x428], eax
jbe 0x10634ad
push edi
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x106345b
push dword [ebp - 0x42c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x418], 0xffffffff
je 0x1063685
push dword [ebp - 0x418]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000102
jne 0x106369c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
je 0x10636ab
push eax
push ebx
push 0x100d868
push 3
jmp 0x10636b9
push dword [ebp - 0x424]
push ebx
push 0x100d82c
push 4
call fcn.01055c69
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.01047464
leave
ret 0xc