Function at 0x1001246f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
mov ecx, 0x10018e30
call fcn.10012927
xor ebx, ebx
push 0xf0000000
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
call fcn.1001223d
test al, al
je 0x100127a5
push 1
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
call fcn.10012409
test al, al
je 0x1001279d
or dword [ebp - 0x10], 0xffffffff
push 0x8000000
push 3
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.10012b2f
test al, al
je 0x10012795
push esi
push edi
push dword [0x1001880c]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x28], ebx
call fcn.10012210
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x28]
call fcn.10012b60
test al, al
je 0x1001278b
cmp dword [ebp - 0xc], esi
jne 0x1001278b
push esi
push dword [0x1001880c]
push dword [ebp - 0x28]
call fcn.1000abf5
add esp, 0xc
test eax, eax
jne 0x1001278b
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push 4
push eax
mov dword [ebp - 0x24], ebx
call fcn.10012b60
test al, al
je 0x1001278b
cmp dword [ebp - 0xc], 4
jne 0x1001278b
push dword [ebp - 0x24]
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.10012210
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 4]
call fcn.10012b60
test al, al
je 0x10012783
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
jne 0x10012783
lea ecx, [ebp - 0x10]
call fcn.10012bbe
mov edi, eax
cmp edi, 0xffffffff
je 0x10012783
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x100125af
mov dword [eax], edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10012783
sub eax, edi
lea ecx, [ebp - 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 8], ebx
call fcn.100122ca
test al, al
je 0x1001277b
xor esi, esi
cmp dword [ebp + 0x10], ebx
jbe 0x1001262c
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x430]
push 0x400
push eax
call fcn.10012b60
test al, al
je 0x1001277b
cmp dword [ebp - 0xc], ebx
je 0x1001262c
push dword [ebp - 0xc]
lea eax, [ebp - 0x430]
lea ecx, [ebp - 8]
push eax
call fcn.1001230e
test al, al
je 0x1001277b
add esi, dword [ebp - 0xc]
cmp esi, dword [ebp + 0x10]
jb 0x100125e5
lea eax, [ebp - 0x30]
lea ecx, [ebp - 8]
push eax
push dword [ebp - 0x24]
push dword [ebp - 4]
call fcn.1001239c
test al, al
je 0x1001277b
cmp byte [ebp + 0x18], bl
je 0x1001266a
lea ecx, [ebp - 0x10]
call fcn.10012b19
lea ecx, [ebp - 8]
call fcn.100122f5
lea ecx, [ebp - 4]
call fcn.10012228
mov bl, 1
jmp 0x1001278b
push ebx
push edi
lea ecx, [ebp - 0x10]
call fcn.10012ba3
test al, al
je 0x1001277b
cmp dword [ebp + 0xc], ebx
mov esi, 0x10014e28
mov byte [ebp + 0x1b], bl
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
je 0x100126b1
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100126b1
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.100127e2
jmp 0x100126cf
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
mov byte [ebp + 0x1b], 1
call fcn.100127e2
push str..tmp
lea ecx, [ebp - 0x20]
call fcn.1001288f
or dword [ebp - 0x14], 0xffffffff
push 0x80
push 2
push ebx
push 0x40000000
lea ecx, [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.10012b2f
test al, al
je 0x10012768
xor edi, edi
cmp dword [ebp + 0x10], ebx
jbe 0x10012735
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x430]
push 0x400
push eax
call fcn.10012b60
test al, al
je 0x10012768
cmp dword [ebp - 0xc], ebx
je 0x10012735
push dword [ebp - 0xc]
lea eax, [ebp - 0x430]
lea ecx, [ebp - 0x14]
push eax
call fcn.10012b7e
test al, al
je 0x10012768
add edi, dword [ebp - 0xc]
cmp edi, dword [ebp + 0x10]
jb 0x100126f6
lea ecx, [ebp - 0x10]
call fcn.10012b19
lea ecx, [ebp - 0x14]
call fcn.10012b19
cmp byte [ebp + 0x1b], bl
je 0x100127bc
push dword [ebp + 8]
call fcn.10012cb4
test al, al
pop ecx
je 0x10012768
push dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.10012ca0
pop ecx
test al, al
pop ecx
jne 0x100127bc
lea ecx, [ebp - 0x14]
call fcn.10012b19
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.10012874
lea ecx, [ebp - 8]
call fcn.100122f5
lea ecx, [ebp - 4]
call fcn.10012228
lea ecx, [ebp - 0x28]
call fcn.10012228
pop edi
pop esi
lea ecx, [ebp - 0x10]
call fcn.10012b19
lea ecx, [ebp - 0x30]
call fcn.100123c2
lea ecx, [ebp - 0x2c]
call fcn.100122af
mov ecx, 0x10018e30
call fcn.100129fa
mov al, bl
pop ebx
leave
ret
lea ecx, [ebp - 0x14]
call fcn.10012b19
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.10012874
jmp 0x10012653