Function at 0x411500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x5402b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00411300
test al, al
je 0x411773
lea ecx, [ebp - 0xc8]
call fcn.0044d1b0
push eax
lea ebx, [ebp - 0xac]
call fcn.00411210
mov ebx, 8
add esp, 4
cmp dword [ebp - 0xb0], ebx
jb 0x411559
mov eax, dword [ebp - 0xc4]
push eax
call fcn.004c097a
add esp, 4
mov edi, 0x5195ac
lea ecx, [ebp - 0xac]
lea esi, [ebp - 0x3c]
call fcn.0040e390
mov edi, 0x51960c
lea ecx, [ebp - 0xac]
lea esi, [ebp - 0x20]
call fcn.0040e390
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], ebx
jae 0x41158a
lea eax, [ebp - 0x38]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x41160c
mov eax, dword [ebp - 0x1c]
mov esi, 8
cmp dword [ebp - 8], esi
jae 0x4115a7
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x41160c
cmp dword [ebp - 8], esi
jb 0x4115bf
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004c097a
add esp, 4
xor esi, esi
xor edx, edx
mov ebx, 8
mov edi, 7
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov word [ebp - 0x1c], dx
cmp dword [ebp - 0x24], ebx
jb 0x4115e8
mov eax, dword [ebp - 0x38]
push eax
call fcn.004c097a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x38], cx
cmp dword [ebp - 0x94], ebx
jb 0x411773
mov edx, dword [ebp - 0xa8]
push edx
jmp 0x41176b
mov edi, str.components_
lea ecx, [ebp - 0xac]
lea esi, [ebp - 0x90]
call fcn.0040e390
mov ecx, esi
mov edi, str.npflash
lea esi, [ebp - 0x58]
call fcn.0040e390
mov edi, str.ppflash
lea ecx, [ebp - 0x90]
lea esi, [ebp - 0x74]
call fcn.0040e390
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
jae 0x411650
lea eax, [ebp - 0x54]
push eax
call ebx
xor esi, esi
mov edi, 7
test eax, eax
je 0x411683
sub esp, 0x1c
mov eax, esp
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x58]
xor ecx, ecx
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], esi
push edx
mov word [eax + 4], cx
call fcn.004018f0
call fcn.00411450
add esp, 0x1c
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x41168f
lea eax, [ebp - 0x70]
push eax
call ebx
test eax, eax
je 0x4116bb
sub esp, 0x1c
mov eax, esp
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x74]
xor ecx, ecx
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], esi
push edx
mov word [eax + 4], cx
call fcn.004018f0
call fcn.00411450
add esp, 0x1c
call fcn.004112d0
mov ebx, 8
cmp dword [ebp - 0x5c], ebx
jb 0x4116d6
mov eax, dword [ebp - 0x70]
push eax
call fcn.004c097a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], esi
mov word [ebp - 0x70], cx
cmp dword [ebp - 0x40], ebx
jb 0x4116f3
mov edx, dword [ebp - 0x54]
push edx
call fcn.004c097a
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], esi
mov word [ebp - 0x54], ax
cmp dword [ebp - 0x78], ebx
jb 0x411713
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.004c097a
add esp, 4
xor edx, edx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], esi
mov word [ebp - 0x8c], dx
cmp dword [ebp - 8], ebx
jb 0x411733
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004c097a
add esp, 4
xor ecx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov word [ebp - 0x1c], cx
cmp dword [ebp - 0x24], ebx
jb 0x411750
mov edx, dword [ebp - 0x38]
push edx
call fcn.004c097a
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x38], ax
cmp dword [ebp - 0x94], ebx
jb 0x411773
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.004c097a
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c0985
mov esp, ebp
pop ebp
ret