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

Disassembly:
sub esp, 0x430
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
mov byte [esp + 0x338], al
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x339]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x129]
mov byte [esp + 0x128], al
mov byte [esp + 0x230], al
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x231]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x444]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.00422fee
mov edx, eax
add esp, 8
test edx, edx
jne 0x411381
lea edx, [esp + 0x20]
push 0x2f
push edx
call fcn.00422fee
mov edx, eax
add esp, 8
test edx, edx
je 0x4113b1
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x230]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 1]
jmp 0x4113b5
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x128]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x44c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x411552
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x4113f3
xor eax, eax
jmp 0x4113fb
mov eax, dword [ebx + 0x10]
sub eax, ecx
sar eax, 2
lea ebp, [eax - 1]
test ebp, ebp
jl 0x411552
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41141a
mov edx, dword [ecx]
call dword [edx + 0x18]
jmp 0x41141c
xor eax, eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.00422fee
add esp, 8
test eax, eax
je 0x411455
mov byte [eax], 0
test ebp, ebp
jne 0x411481
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x338]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4661a0
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4661a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411760
dec ebp
jns 0x411406
mov ecx, dword [ebx + 0xc]
xor ebp, ebp
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x411567
mov edx, dword [ecx]
call dword [edx + 0x18]
jmp 0x411569
xor eax, eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x338]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x33c]
push ecx
call fcn.00422fee
add esp, 8
cmp eax, ebp
je 0x4115a8
mov byte [eax], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [ebx + 0x230]
test eax, eax
je 0x4117d4
mov edx, dword [ebx + 0x234]
sub edx, eax
mov eax, dword [esp + 0x18]
sar edx, 4
cmp eax, edx
jae 0x4117d4
mov ebp, dword [ebx + 0x230]
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x20]
add ebp, ecx
mov dword [esp + 0x1c], 0
dec ebx
mov eax, dword [esp + 0x1c]
test eax, eax
mov eax, dword [ebp + 4]
jne 0x41161f
test eax, eax
jne 0x411602
mov eax, 0x457138
push eax
lea eax, [esp + 0x33c]
push eax
lea ecx, [esp + 0x28]
push str._s_s
push ecx
call fcn.00422c52
add esp, 0x10
jmp 0x41163b
test eax, eax
jne 0x411628
mov eax, 0x457138
push eax
lea edx, [esp + 0x24]
push 0x466410
push edx
call fcn.00422c52
add esp, 0xc
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx]
cmp al, 0x5c
je 0x411654
cmp al, 0x2f
jne 0x411658
mov byte [ebx + ecx], 0
lea edi, [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4116c5
mov edi, 0x4661a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x230]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4661a0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411760
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x4115ee
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x4115b0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x128]
mov dword [esp + 0x10], eax
push ecx
push edx
lea eax, [esp + 0x28]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x448]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret 0xc
mov edi, dword [esp + 0x444]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x448]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret 0xc