Function at 0x4aa47b34
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x4aa50774]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x540], eax
push 0x103
lea eax, [ebp - 0x2d8]
push eax
mov eax, dword [0x4aa51260]
xor ebx, ebx
mov dword [ebp - 0x544], ebx
call dword [eax + 0x25c]
cmp eax, ebx
jne 0x4aa47b7f
xor eax, eax
jmp 0x4aa47ec9
cmp word [ebp + eax*2 - 0x2da], 0x5c
je 0x4aa47b9e
lea eax, [ebp - 0x2d8]
push 0x4aa4120c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push edi
push dword [ebp - 0x540]
xor eax, eax
mov ecx, 0x100
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
mov edi, 0x4aa4142c
lea eax, [ebp - 0x2d8]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x14
test eax, eax
jne 0x4aa47bf4
lea eax, [ebp - 0x2d8]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [ebp - 0x540], eax
jne 0x4aa47c23
xor eax, eax
jmp 0x4aa47ec8
lea eax, [ebp - 0x2d8]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x54c]
push eax
push ebx
push ebx
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x54c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x64
lea eax, [esi + 0x208]
push eax
push ebx
lea eax, [ebp - 0x55c]
push eax
mov eax, dword [0x4aa51260]
push 1
mov edi, 0x400
push edi
call dword [eax + 0x4dc]
push ebx
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea eax, [ebp - 0x33c]
push 0x4aa41424
push eax
mov eax, dword [0x4aa51260]
call dword [eax + 0x4cc]
add esp, 0xc
push ebx
push ebx
push 0x32
lea eax, [ebp - 0x9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x33c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x32
lea eax, [ebp - 0xd0]
push eax
push ebx
lea eax, [ebp - 0x9c]
push eax
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x32
lea eax, [ebp - 0x68]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xd0]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jle 0x4aa47d0d
mov word [ebp + eax*2 - 0x6e], bx
lea ecx, [ebp - 0x68]
lea eax, [esi + 0x2d0]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, dword [sym.imp.SQLUNIRL.dll__LoadString_16]
pop ecx
pop ecx
push 0x32
lea eax, [ebp - 0x68]
push eax
push 4
push dword [0x4aa5a9f0]
call edi
lea eax, [ebp - 0x68]
push eax
lea eax, [esi + 0x2d0]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x4aa47dd5
dec eax
jne 0x4aa47eb9
push 1
push ebx
lea eax, [ebp - 0x2d8]
push eax
mov eax, dword [0x4aa51260]
call dword [eax + 0x2c0]
cmp eax, ebx
mov dword [ebp - 0x544], eax
je 0x4aa47dec
mov dword [esi + 0x3fc], 1
push 0x4aa41408
add esi, 0x398
push eax
mov word [esi], bx
call dword [sym.imp.SQLUNIRL.dll__GetProcAddress__8]
cmp eax, ebx
je 0x4aa47eb9
call eax
movzx ecx, ax
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
shr eax, 0x18
push eax
mov eax, dword [0x4aa51260]
push 0x4aa413f4
push esi
call dword [eax + 0x4cc]
add esp, 0x14
jmp 0x4aa47eb9
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadLibrary_4]
cmp eax, ebx
mov dword [ebp - 0x544], eax
jne 0x4aa47e0a
mov dword [esi + 0x3fc], ebx
push 0x32
add esi, 0x398
push esi
push 7
push dword [0x4aa5a9f0]
call edi
jmp 0x4aa47ec5
mov dword [esi + 0x3fc], 1
push 0x2b
add esi, 0x398
push eax
mov word [esi], bx
call dword [sym.imp.SQLUNIRL.dll__GetProcAddress__8]
cmp eax, ebx
je 0x4aa47eb9
call eax
cmp eax, ebx
je 0x4aa47eb9
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4aa47e3d
sub ecx, edi
mov edi, 0x100
cmp ecx, edi
jge 0x4aa47e5f
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4aa47e54
sub ecx, edi
mov edi, ecx
push edi
lea ecx, [ebp - 0x53c]
push ecx
push edi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebp + edi*2 - 0x53c], bx
xor ecx, ecx
cmp word [ebp - 0x53c], bx
je 0x4aa47e9c
lea edx, [ebp - 0x53c]
mov eax, edx
cmp word [edx], 0x2e
je 0x4aa47e9c
inc ecx
inc eax
inc eax
cmp word [eax], bx
mov edx, eax
jne 0x4aa47e8c
cmp word [ebp + ecx*2 - 0x53c], 0x2e
jne 0x4aa47ea8
dec ecx
lea eax, [ebp + ecx*2 - 0x53c]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x544]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.4aa4a60f
leave
ret