Function at 0x10001515
Capabilities:
Get file size

Disassembly:
sub esp, 0xa64
mov eax, dword [0x10033500]
xor eax, esp
mov dword [esp + 0xa60], eax
or dword [esp], 0xffffffff
lea eax, [esp + 0x26a]
push ebx
push ebp
push esi
push edi
mov esi, 0x10020230
lea edi, [esp + 0x270]
xor ebp, ebp
push 0x7f6
push ebp
movsd dword es:[edi], dword [esi]
mov ebx, ebp
push eax
mov dword [esp + 0x20], ebp
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.1000bb40
add esp, 0xc
lea eax, [esp + 0x68]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100015ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [esp + 0x10], 0xffffffff
je 0x1000158d
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebp
je 0x100015a3
push 0x8000
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov ecx, dword [esp + 0xa70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a68b
add esp, 0xa64
ret
cmp word [esp + eax*2 + 0x68], 0x5c
je 0x100017a2
sub eax, 1
jne 0x100015be
push 0x68
pop ecx
push 0x70
pop eax
push 0x71
mov word [esp + 0x52], ax
pop eax
push 0x76
mov word [esp + 0x54], ax
pop eax
push 0x63
mov word [esp + 0x58], ax
pop eax
push 0x66
mov word [esp + 0x5a], ax
pop eax
push 0x67
mov word [esp + 0x5c], ax
pop eax
push 0x2e
mov word [esp + 0x5e], ax
pop eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x78
mov word [esp + 0x60], ax
pop eax
push 0x6d
mov word [esp + 0x62], ax
pop eax
mov word [esp + 0x60], ax
push 0x6c
pop eax
mov word [esp + 0x62], ax
xor eax, eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x274]
mov word [esp + 0x50], cx
push eax
mov word [esp + 0x5a], cx
call esi
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x274]
push eax
call esi
push str.RtlInitUnicodeString
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x48]
push ecx
call eax
push ebp
push ebp
push 0x20
push 1
push ebp
push 0x80
lea eax, [esp + 0x5c]
mov dword [esp + 0x44], 0x18
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
push ebp
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], ebp
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x58], 0x40
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x60], ebp
push 0xc0100000
push eax
mov dword [esp + 0x6c], ebp
movlpd qword [esp + 0x50], xmm0
call fcn.1000a66d
add esp, 0x2c
test eax, eax
js 0x1000157c
push ebp
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 0x3000
push eax
push ebp
lea eax, [esp + 0x24]
push eax
call esi
push eax
call fcn.1000a659
add esp, 0x18
test eax, eax
js 0x1000157c
push ebp
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push dword [esp + 0x20]
movlpd qword [esp + 0x34], xmm0
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x30]
call fcn.1000a677
add esp, 0x24
test eax, eax
js 0x1000157c
push dword [esp + 0x10]
call fcn.1000a681
push dword [esp + 0x1c]
or dword [esp + 0x18], 0xffffffff
push dword [esp + 0x1c]
call sym.hpqhvsei32.dll_Search
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [0x10033ce0], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], ebp
push eax
push 0x20
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
call esi
push eax
call fcn.1000a663
add esp, 0x14
test eax, eax
js 0x1000157c
xor eax, eax
jmp 0x100015a5
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x100017bc
xor ecx, ecx
mov word [esp + eax + 0x68], cx
jmp 0x100015cf
call fcn.1000a7bc
int3