Function at 0x1002e5f0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
sub esp, 0xa4
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
push ebx
push ebp
push esi
mov dword [0x1007fdb0], ecx
mov ecx, dword [esp + 0xc4]
push edi
push eax
mov dword [0x1007fdb4], eax
mov dword [0x1007fdb8], edx
mov dword [0x1007fdbc], ecx
call fcn.1004109b
xor ebx, ebx
add esp, 4
mov byte [esp + 0x20], bl
mov edx, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.1002c450
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.1002ca90
lea ecx, [ebx + 0x16]
call fcn.1002cb20
mov esi, eax
mov ecx, esi
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
lea ebp, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
add ecx, 1
cmp al, bl
jne 0x1002e690
sub ecx, ebp
push ecx
push esi
lea ecx, [esp + 0x80]
call fcn.10003ca0
mov esi, 0xf
mov eax, edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1002e6c0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.10003ca0
cmp dword [esp + 0x70], ebx
jne 0x1002e779
push 0x10073628
call fcn.1002cad0
mov edi, 0x10
cmp dword [esp + 0x74], edi
jb 0x1002e702
mov eax, dword [esp + 0x60]
push eax
call fcn.10040f62
add esp, 4
cmp dword [esp + 0x90], edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x1002e724
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.10040f62
add esp, 4
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
je 0x1002e9e2
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1002e9e2
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1002e9e2
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x1002e9e2
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x1c], 0x5c
call fcn.1000cf20
cmp eax, 0xffffffff
je 0x1002e7d0
push 0xffffffffffffffff
add eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x68]
call fcn.10006c70
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x68]
call fcn.10003960
mov ebp, 0x10
cmp dword [esp + 0x3c], ebp
jb 0x1002e7d5
mov edx, dword [esp + 0x28]
push edx
call fcn.10040f62
add esp, 4
jmp 0x1002e7d5
mov ebp, 0x10
lea eax, [esp + 0x5c]
push eax
push 0x5c
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.1000d8b0
add esp, 0xc
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1000d760
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x68]
call fcn.10003960
cmp dword [esp + 0x3c], ebp
jb 0x1002e81f
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10040f62
add esp, 4
cmp dword [esp + 0x58], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x1002e83e
mov edx, dword [esp + 0x44]
push edx
call fcn.10040f62
add esp, 4
cmp dword [esp + 0x74], ebp
mov eax, dword [esp + 0x60]
jae 0x1002e84c
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002e95f
test al, 0x10
jne 0x1002e95f
cmp dword [esp + 0x74], ebp
mov eax, dword [esp + 0x60]
jae 0x1002e872
lea eax, [esp + 0x60]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002e89f
push 0x10073628
call fcn.1002cad0
jmp 0x1002e93f
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002e8d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1002e8d3
push 0x10073628
call fcn.1002cad0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002e93f
mov edx, dword [esp + 0x1c]
xor eax, eax
xor ecx, ecx
or edx, eax
push edx
or ecx, edi
push ecx
lea ecx, [esp + 0x9c]
push str._I64u
push ecx
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
call fcn.1000ace0
mov eax, dword [esp + 0xa8]
add esp, 0x10
cmp dword [esp + 0xac], ebp
jae 0x1002e926
lea eax, [esp + 0x98]
push eax
call fcn.1002cad0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x94]
call fcn.100037f0
lea ecx, [esp + 0x5c]
call fcn.100037f0
lea ecx, [esp + 0x78]
call fcn.100037f0
lea ecx, [esp + 0x14]
call fcn.1002c3d0
jmp 0x1002e9e2
push 0x10073628
call fcn.1002cad0
cmp dword [esp + 0x74], ebp
jb 0x1002e97c
mov edx, dword [esp + 0x60]
push edx
call fcn.10040f62
add esp, 4
cmp dword [esp + 0x90], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x1002e99e
mov eax, dword [esp + 0x7c]
push eax
call fcn.10040f62
add esp, 4
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
je 0x1002e9e2
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1002e9e2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002e9e2
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10040be4
add esp, 0xa4
ret