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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esi + 4], eax
xor eax, eax
mov byte [esp + 0x120], bl
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x228], bl
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x438], bl
mov ecx, 0x40
lea edi, [esp + 0x439]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x540], bl
mov ecx, 0x40
lea edi, [esp + 0x541]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x750], bl
mov ecx, 0x40
lea edi, [esp + 0x751]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x330], bl
mov ecx, 0x40
lea edi, [esp + 0x331]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x648], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x649]
rep stosd dword es:[edi], eax
push 0x103
lea ecx, [esp + 0x124]
stosw word es:[edi], ax
push ecx
push ebx
mov dword [esi + 0x214], ebx
stosb byte es:[edi], al
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x444]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.00403553
push str.Disk_d.img
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x454]
push eax
lea ecx, [esp + 0x140]
push str._s_s_s
push ecx
call fcn.004033c0
mov ecx, dword [esi + 0x218]
mov eax, 1
add esp, 0x28
cmp ecx, eax
jne 0x403267
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edi, edi
inc edi
push edi
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004033c0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x403221
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00403060
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00401be0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], eax
call fcn.004033c0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4033a3
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x4032a0
lea ecx, [esp + 0x648]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00401aa0
test eax, eax
je 0x4033a3
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x334]
push eax
push 0x77
push ecx
call edi
test eax, eax
je 0x403389
mov eax, dword [esi]
push 0x103
lea edx, [esp + 0x544]
push edx
push 0x67
push eax
call edi
test eax, eax
je 0x403389
lea ecx, [esp + 0x648]
push ecx
lea edx, [esp + 0x334]
push edx
lea eax, [esp + 0x758]
push eax
call fcn.004033c0
mov eax, dword [esi + 0x21c]
add esp, 0xc
cmp eax, ebx
jne 0x40335a
mov eax, dword [esi + 4]
push 3
lea ecx, [esp + 0x544]
push ecx
lea edx, [esp + 0x758]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 2
je 0x4033a3
sub eax, 4
jne 0x40336a
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00403000
test eax, eax
je 0x4033a3
inc dword [esp + 0x10]
jmp 0x40336a
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00403000
test eax, eax
je 0x4033a3
mov eax, dword [esp + 0x14]
inc eax
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004033c0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4032a0
cmp dword [esp + 0x10], ebx
jne 0x4033ae
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4