Function at 0x1011cd89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
or dword [ebp - 0x280], 0xffffffff
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x264], edx
xor edx, edx
push esi
mov dword [ebp - 0x290], eax
mov esi, edx
mov eax, edx
mov dword [ebp - 0x298], ecx
mov ebx, edx
mov dword [ebp - 0x284], edx
push edi
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], esi
mov byte [ebp - 0x294], dl
call fcn.10099234
mov edi, eax
test edi, edi
jns 0x1011ce4e
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x48]
test eax, eax
jne 0x1011ce33
mov eax, 0x100082e8
push eax
push 0x1004bfa8
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x1011d236
mov esi, dword [ebp - 0x270]
xor ecx, ecx
lea eax, [esi + 0x60]
mov dword [ebp - 0x288], eax
cmp dword [eax], ecx
jne 0x1011cea8
mov ecx, dword [esi + 0xc]
mov edx, eax
call fcn.1011cc75
mov edi, eax
test edi, edi
jns 0x1011cea3
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x48]
test eax, eax
jne 0x1011ce85
mov eax, 0x100082e8
push dword [esi + 0xc]
push eax
push 0x1004bfe4
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x18
jmp 0x1011d236
lea eax, [esi + 0x60]
xor ecx, ecx
cmp dword [esi + 0x68], ecx
je 0x1011d1a7
mov edx, dword [ebp - 0x264]
mov ecx, 0x100082e8
mov edx, dword [edx + 0x58]
mov eax, edx
test edx, edx
jne 0x1011cec7
mov eax, ecx
test eax, eax
je 0x1011cfc9
test edx, edx
je 0x1011ced5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x284]
jne 0x1011ced8
sub ecx, edi
sar ecx, 1
je 0x1011cfc9
test edx, edx
jne 0x1011cefa
mov edx, 0x100082e8
push edx
push dword [esi + 0xc]
lea eax, [ebp - 0x260]
push 0x1004c020
push eax
call fcn.100a6b40
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x1011cf4b
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x58]
test eax, eax
jne 0x1011cf2a
mov eax, 0x100082e8
push eax
push 0x1004c03c
push 1
push edi
push 0x4000000
call fcn.100ab973
mov ebx, dword [ebp - 0x260]
add esp, 0x14
jmp 0x1011d236
mov ebx, dword [ebp - 0x260]
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1011cf6d
push ebx
push 0x1004c06c
mov edi, 0x800f081f
jmp 0x1011ce39
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x58]
test eax, eax
jne 0x1011cf7f
mov eax, 0x100082e8
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.100a7590
mov edi, eax
test edi, edi
jns 0x1011cfb8
push 0x1004c0a0
push 1
push edi
push 0x4000000
call fcn.100ab973
mov eax, dword [ebp - 0x26c]
add esp, 0x10
mov dword [ebp - 0x268], eax
jmp 0x1011d236
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x268], eax
jmp 0x1011d0c6
push dword [esi + 0xc]
lea eax, [ebp - 0x274]
push 0x1004c0bc
push eax
call fcn.100a6b40
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x1011d00c
push 0x1004c0d4
push 1
push edi
push 0x4000000
call fcn.100ab973
mov eax, dword [ebp - 0x274]
add esp, 0x10
mov dword [ebp - 0x278], eax
jmp 0x1011d236
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x258]
push eax
push esi
mov dword [ebp - 0x278], esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
je 0x1011d1a1
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.100a7590
mov edi, eax
test edi, edi
js 0x1011cf92
mov eax, dword [ebp - 0x270]
mov esi, dword [ebp - 0x26c]
push esi
mov dword [ebp - 0x268], esi
push dword [eax + 0xc]
lea eax, [ebp - 0x260]
push 0x100082dc
push eax
call fcn.100a6b40
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x1011d088
push esi
jmp 0x1011cf2b
mov ecx, esi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1011d08f
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 8]
test eax, eax
je 0x1011d0c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1011d0aa
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esi + ecx*2 - 0x10], ax
mov ebx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x288]
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x268]
push ecx
mov ecx, esi
call dword [0x101e07c0]
call esi
mov edi, eax
test edi, edi
jns 0x1011d12d
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x1011d103
mov eax, 0x100082e8
mov ecx, dword [ebp - 0x270]
push dword [ecx + 0x14]
push eax
push dword [ebp - 0x268]
push 0x1004c0f8
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x1c
jmp 0x1011d236
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x1011d164
push dword [ebp - 0x25c]
mov ecx, eax
call fcn.1013b7ed
mov edi, eax
test edi, edi
jns 0x1011d164
push 0x1004b9f8
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x1011d236
mov ecx, dword [ebp - 0x25c]
push ebx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x101e07c0]
call esi
mov edi, eax
cmp edi, 0x800700b7
jne 0x1011d18b
xor edx, edx
mov edi, edx
jmp 0x1011d19c
test edi, edi
jns 0x1011d19a
push ebx
push 0x1004c13c
jmp 0x1011ce39
xor edx, edx
xor eax, eax
inc eax
jmp 0x1011d21a
push esi
jmp 0x1011cf5e
mov ecx, dword [eax]
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x270]
push dword [eax + 0x14]
push ecx
mov ecx, esi
call dword [0x101e07c0]
call esi
mov edi, eax
test edi, edi
jns 0x1011d1f5
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x1011d1e1
mov eax, 0x100082e8
mov ecx, dword [ebp - 0x270]
push dword [ecx + 0x14]
push eax
push 0x1004c17c
jmp 0x1011ce8e
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x1011d216
push dword [ebp - 0x25c]
mov ecx, eax
call fcn.1013b7ed
mov edi, eax
test edi, edi
js 0x1011d14a
xor edx, edx
mov eax, edx
mov ecx, dword [ebp - 0x28c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x25c], edx
mov dword [ecx], eax
mov ecx, dword [ebp - 0x25c]
test ecx, ecx
je 0x1011d250
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101e07c0]
call esi
test ebx, ebx
je 0x1011d25e
lea eax, [ebx - 4]
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x1011d272
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x1011d286
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [ebp - 0x280]
cmp eax, 0xffffffff
je 0x1011d298
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
cmp byte [ebp - 0x294], 0
je 0x1011d2a6
call fcn.100edd2d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0x10