Function at 0x12fd96c0
Capabilities:
Get file attributes
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13071b7b
push eax
mov dword fs:[0], esp
sub esp, 0x4fc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor ebx, ebx
push edi
mov dword [0x131c96c0], ebx
call ebp
mov esi, dword [esp + 0x51c]
mov dword [0x131c96c8], eax
cmp esi, ebx
je 0x12fd9fb9
cmp word [esi], bx
je 0x12fd9fb9
cmp dword [esp + 0x520], ebx
je 0x12fd9fb9
mov edi, dword [esp + 0x524]
cmp edi, ebx
je 0x12fd9fb9
cmp dword [edi], ebx
je 0x12fd9fb9
cmp dword [0x131c96cc], ebx
jne 0x12fd9751
mov dword [0x131c96c0], 2
mov dword [0x131c96c4], 0x2ccc
jmp 0x12fd9fcd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x12fd9775
mov dword [0x131c96c0], 0x1d
mov dword [0x131c96c4], 0x2cd4
jmp 0x12fd9fcd
mov eax, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocStringLen
push esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
call fcn.12fee850
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
mov dword [esp + 0x4c], esi
je 0x12fd9e16
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xb4]
push ecx
push esi
stosb byte es:[edi], al
call fcn.12fd9ff0
add esp, 8
test eax, eax
je 0x12fd9e31
lea edx, [esp + 0xb4]
test edx, edx
je 0x12fd9e4c
push 0x10
lea eax, [esp + 0xb8]
push 0x13182bc0
push eax
call fcn.12f5e5f0
add esp, 0xc
test eax, eax
jne 0x12fd9e4c
test byte [esp + 0xe6], 1
je 0x12fd9e4c
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push ebx
push edx
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
call fcn.12fc2de0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, ebx
jne 0x12fd9e67
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xf8]
mov dword [esp + 0xf4], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x80]
mov dword [esp + 0x7c], ebx
lea edx, [esp + 0xb4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xf4]
mov dword [esp + 0x68], ebx
push ecx
push edx
push esi
call fcn.12fda230
add esp, 0xc
test eax, eax
je 0x12fd9e82
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x185]
mov byte [esp + 0x184], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x184]
push eax
push esi
call fcn.12fd42f0
add esp, 8
test eax, eax
je 0x12fd9e9d
lea ecx, [esp + 0x7c]
lea edx, [esp + 0xf4]
push ecx
lea eax, [esp + 0xb8]
push edx
push eax
push esi
call fcn.12fda4b0
add esp, 0x10
test eax, eax
je 0x12fd9eb8
cmp word [esp + 0x86], bx
jne 0x12fd9ed3
lea ecx, [esp + 0x14]
call fcn.12f923b0
lea ecx, [esp + 0x44]
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0xfc]
push eax
lea edx, [esp + 0xc0]
push ecx
push edx
push esi
mov dword [esp + 0x52c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x5c], ebx
call fcn.12fda700
add esp, 0x18
test eax, eax
je 0x12fd9eee
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov di, word [eax + 0xc]
cmp di, bx
jbe 0x12fd99a5
mov edx, dword [esp + 0x44]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x12fd999f
mov eax, dword [eax]
cmp eax, 1
jb 0x12fd9f04
cmp eax, 4
ja 0x12fd9f04
inc ecx
cmp cx, di
jb 0x12fd9977
lea ecx, [esp + 0x68]
lea edx, [esp + 0x144]
push ecx
push 0x40
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x100]
push eax
push ecx
mov dword [esp + 0x70], ebx
call fcn.12fd8510
add esp, 0x14
test eax, eax
je 0x12fd9f1a
mov edx, dword [esp + 0x5c]
push edx
call fcn.12ff0660
mov ebx, eax
xor edi, edi
add esp, 4
cmp ebx, edi
mov dword [esp + 0x78], ebx
je 0x12fd9f30
lea ecx, [esp + 0x14]
mov dword [esp + 0x514], 0xffffffff
call fcn.12f92510
mov eax, dword [esp + 0x118]
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x1c], edi
cmp eax, edi
mov dword [esp + 0x64], edi
je 0x12fd9e09
mov edi, dword [esp + 0xa8]
cmp eax, 1
jne 0x12fd9a41
mov edi, dword [esp + 0xac]
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0xc]
mov esi, dword [0x13182bbc]
mov ecx, eax
mov eax, esi
xor edx, edx
div edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], esi
mov ebx, eax
mov eax, dword [esp + 0xa4]
imul ebx, ecx
cmp eax, 1
mov dword [esp + 0x40], ebx
je 0x12fd9a7e
mov eax, esi
xor edx, edx
div edi
test edx, edx
je 0x12fd9a8a
mov esi, edi
mov ebx, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], ebx
push esi
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x12fd9f61
push ebx
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x12fd9f77
mov eax, esi
xor edx, edx
xor ebp, ebp
div edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x74], eax
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0xa4]
lea ecx, [edi + ebp]
cmp ecx, eax
jb 0x12fd9b26
mov edi, eax
mov eax, dword [esp + 0xac]
sub edi, ebp
mov dword [esp + 0x64], 1
lea esi, [edi - 1]
imul esi, dword [esp + 0xa8]
add esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x48]
push 0
push edx
push esi
push eax
push ecx
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fd9d8f
cmp esi, dword [esp + 0x48]
jne 0x12fd9da5
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
inc eax
cmp eax, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x6c], ecx
jne 0x12fd9b94
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x6c], ecx
mov esi, dword [esp + 0xa0]
xor eax, eax
cmp eax, esi
mov dword [esp + 0x10], edx
ja 0x12fd9c17
jb 0x12fd9bb6
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x9c]
cmp eax, esi
jae 0x12fd9c17
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], edx
lea edx, [esp + 0x60]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x90]
push ebp
push ecx
call fcn.12fdd2c0
add esp, 0x14
test eax, eax
je 0x12fd9d50
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x68]
push ebx
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x7c]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x12fd9d79
jmp 0x12fd9c6d
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x58]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jbe 0x12fd9c30
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x84]
and eax, 0xffff
sub eax, edx
je 0x12fd9c5b
dec eax
je 0x12fd9c4b
dec eax
jne 0x12fd9c71
lea esi, [ebp + 8]
jmp 0x12fd9c5d
mov eax, ecx
lea esi, [ebp + 4]
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x12fd9c68
mov esi, ebp
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x38]
cmp edx, eax
jne 0x12fd9cbb
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
xor edx, edx
cmp eax, edx
ja 0x12fd9c9c
cmp ecx, 0x1000
jbe 0x12fd9caa
and ecx, 0xfff
xor eax, eax
mov esi, ecx
or esi, eax
je 0x12fd9cb0
mov dword [esp + 0x10], ecx
jmp 0x12fd9cbd
mov ecx, 0x1000
mov dword [esp + 0x10], ecx
jmp 0x12fd9cbd
xor edx, edx
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x70]
add esi, ecx
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x70], eax
je 0x12fd9cdf
mov esi, dword [esp + 0x6c]
add ebp, esi
add ebx, ecx
jmp 0x12fd9b6a
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
add edx, eax
cmp ecx, eax
mov dword [esp + 0x18], edx
jbe 0x12fd9dbb
mov edx, dword [esp + 0x520]
mov esi, dword [esp + 0x20]
mov ecx, eax
mov edi, edx
mov ebx, ecx
add edx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0x520], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
add edi, eax
sub ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], edi
test eax, eax
mov dword [esp + 0x34], ecx
jne 0x12fd9de6
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
jmp 0x12fd9ac8
mov dword [0x131c96c0], 0x1c
mov dword [0x131c96c4], 0x2dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
mov dword [esp + 0x1c], 1
jmp 0x12fd9de6
mov dword [0x131c96c0], 0x12
mov dword [0x131c96c4], 0x2dc7
jmp 0x12fd9d64
mov dword [0x131c96c0], 0xd
mov dword [0x131c96c4], 0x2d98
jmp 0x12fd9d64
mov dword [0x131c96c0], 0xd
mov dword [0x131c96c4], 0x2da0
jmp 0x12fd9d64
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x520]
mov ecx, eax
mov edx, ecx
mov dword [esp + 0x1c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.12f5bf80
mov ecx, dword [esp + 0x24]
push ecx
call fcn.12f5bf80
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
jne 0x12fd9f96
mov dword [esp + 0x54], 1
jmp 0x12fd9f96
mov dword [0x131c96c0], 3
mov dword [0x131c96c4], 0x2cec
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 0xf
mov dword [0x131c96c4], 0x2cf3
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 0x22
mov dword [0x131c96c4], 0x2cfa
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 0x31
mov dword [0x131c96c4], 0x2d00
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x2d10
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 0x1f
mov dword [0x131c96c4], 0x2d18
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x2d1e
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x2d25
call ebp
jmp 0x12fd9f91
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x2d2f
jmp 0x12fd9f44
mov dword [0x131c96c0], 0x32
mov dword [0x131c96c4], 0x2d35
jmp 0x12fd9f44
mov dword [0x131c96c0], 0xb
mov dword [0x131c96c4], 0x2d45
jmp 0x12fd9f44
mov dword [0x131c96c0], 0xc
mov dword [0x131c96c4], 0x2d4e
call ebp
lea ecx, [esp + 0x14]
mov dword [0x131c96c8], eax
mov dword [esp + 0x514], 0xffffffff
call fcn.12f92510
jmp 0x12fd9f96
mov dword [0x131c96c0], 0x21
mov dword [0x131c96c4], 0x2d78
jmp 0x12fd9f8b
mov dword [0x131c96c0], 0x21
mov dword [0x131c96c4], 0x2d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
mov edx, dword [esp + 0x524]
mov eax, dword [esp + 0x24]
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x12fd9fb3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
jmp 0x12fd9fd6
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x2cc6
call ebp
mov dword [0x131c96c8], eax
xor eax, eax
mov ecx, dword [esp + 0x50c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x508
ret