Function at 0x1003871f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
mov ecx, 0x10044f90
call fcn.10038bd7
xor ebx, ebx
push 0xf0000000
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
call fcn.100384ed
test al, al
je 0x10038a55
push 1
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
call fcn.100386b9
test al, al
je 0x10038a4d
or dword [ebp - 0x10], 0xffffffff
push 0x8000000
push 3
push 1
push SysReAllocString
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.10038ddf
test al, al
je 0x10038a45
push esi
push edi
push dword [0x10043858]
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.100384c0
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x28]
call fcn.10038e10
test al, al
je 0x10038a3b
cmp dword [ebp - 0xc], esi
jne 0x10038a3b
push esi
push dword [0x10043858]
push dword [ebp - 0x28]
call fcn.10013f9f
add esp, 0xc
test eax, eax
jne 0x10038a3b
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.10038e10
test al, al
je 0x10038a3b
cmp dword [ebp - 0xc], 4
jne 0x10038a3b
push dword [ebp - 0x24]
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.100384c0
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 4]
call fcn.10038e10
test al, al
je 0x10038a33
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
jne 0x10038a33
lea ecx, [ebp - 0x10]
call fcn.10038e6e
mov edi, eax
cmp edi, 0xffffffff
je 0x10038a33
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1003885f
mov dword [eax], edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10038a33
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.1003857a
test al, al
je 0x10038a2b
xor esi, esi
cmp dword [ebp + 0x10], ebx
jbe 0x100388dc
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x430]
push 0x400
push eax
call fcn.10038e10
test al, al
je 0x10038a2b
cmp dword [ebp - 0xc], ebx
je 0x100388dc
push dword [ebp - 0xc]
lea eax, [ebp - 0x430]
lea ecx, [ebp - 8]
push eax
call fcn.100385be
test al, al
je 0x10038a2b
add esi, dword [ebp - 0xc]
cmp esi, dword [ebp + 0x10]
jb 0x10038895
lea eax, [ebp - 0x30]
lea ecx, [ebp - 8]
push eax
push dword [ebp - 0x24]
push dword [ebp - 4]
call fcn.1003864c
test al, al
je 0x10038a2b
cmp byte [ebp + 0x18], bl
je 0x1003891a
lea ecx, [ebp - 0x10]
call fcn.10038dc9
lea ecx, [ebp - 8]
call fcn.100385a5
lea ecx, [ebp - 4]
call fcn.100384d8
mov bl, 1
jmp 0x10038a3b
push ebx
push edi
lea ecx, [ebp - 0x10]
call fcn.10038e53
test al, al
je 0x10038a2b
cmp dword [ebp + 0xc], ebx
mov esi, 0x1003d504
mov byte [ebp + 0x1b], bl
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
je 0x10038961
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10038961
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.10038a92
jmp 0x1003897f
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
mov byte [ebp + 0x1b], 1
call fcn.10038a92
push str..tmp
lea ecx, [ebp - 0x20]
call fcn.10038b3f
or dword [ebp - 0x14], 0xffffffff
push 0x80
push 2
push ebx
push 0x40000000
lea ecx, [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.10038ddf
test al, al
je 0x10038a18
xor edi, edi
cmp dword [ebp + 0x10], ebx
jbe 0x100389e5
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x430]
push 0x400
push eax
call fcn.10038e10
test al, al
je 0x10038a18
cmp dword [ebp - 0xc], ebx
je 0x100389e5
push dword [ebp - 0xc]
lea eax, [ebp - 0x430]
lea ecx, [ebp - 0x14]
push eax
call fcn.10038e2e
test al, al
je 0x10038a18
add edi, dword [ebp - 0xc]
cmp edi, dword [ebp + 0x10]
jb 0x100389a6
lea ecx, [ebp - 0x10]
call fcn.10038dc9
lea ecx, [ebp - 0x14]
call fcn.10038dc9
cmp byte [ebp + 0x1b], bl
je 0x10038a6c
push dword [ebp + 8]
call fcn.10038f64
test al, al
pop ecx
je 0x10038a18
push dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.10038f50
pop ecx
test al, al
pop ecx
jne 0x10038a6c
lea ecx, [ebp - 0x14]
call fcn.10038dc9
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.10038b24
lea ecx, [ebp - 8]
call fcn.100385a5
lea ecx, [ebp - 4]
call fcn.100384d8
lea ecx, [ebp - 0x28]
call fcn.100384d8
pop edi
pop esi
lea ecx, [ebp - 0x10]
call fcn.10038dc9
lea ecx, [ebp - 0x30]
call fcn.10038672
lea ecx, [ebp - 0x2c]
call fcn.1003855f
mov ecx, 0x10044f90
call fcn.10038caa
mov al, bl
pop ebx
leave
ret
lea ecx, [ebp - 0x14]
call fcn.10038dc9
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.10038b24
jmp 0x10038903