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

Disassembly:
push 0xffffffffffffffff
push 0x40b0ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
mov eax, dword [0x40e060]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4ac]
mov dword [esp + 0x490], eax
mov eax, dword [esp + 0x4a8]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.00402730
xor eax, eax
xor edx, edx
mov ecx, 0x12c
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4a8]
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x4a0], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebp
jle 0x404032
mov edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x404027
mov eax, dword [esi + 0x114]
test eax, eax
je 0x403c98
mov cl, byte [esi + 0x124]
test cl, cl
lea eax, [esi + 0x124]
jne 0x403c98
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + ebp*4]
push 0x80
push edx
push eax
call fcn.00405020
add esp, 0xc
mov byte [esi + 0x1a3], 0
jmp 0x404013
mov eax, dword [esi + 0x118]
test eax, eax
je 0x403cec
mov al, byte [esi + 0x1a4]
test al, al
lea edi, [esi + 0x1a4]
jne 0x403cec
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + ebp*4]
mov edx, edi
jmp 0x403cc0
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403cc0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404013
mov eax, 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jmp 0x404032
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x403def
mov al, byte [esi + 0x2a8]
test al, al
lea ebp, [esi + 0x2a8]
jne 0x403def
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + edx*4]
mov edx, ebp
jmp 0x403d20
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403d20
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403d30
sub eax, edx
inc eax
push eax
call fcn.004052d2
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x404041
mov edi, eax
mov ecx, ebp
sub edi, ebp
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x403d55
push 0x18
mov ebp, eax
lea eax, [esp + 0x80]
push eax
push 0x18
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x3c]
xor edi, edi
call fcn.00401d30
cmp eax, 0xea
mov dword [esp + 0x14], eax
jne 0x403dbb
lea ecx, [ecx]
push 0x18
lea eax, [esp + 0x80]
push eax
push 0x18
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x3c]
inc edi
call fcn.00401d30
cmp eax, 0xea
mov dword [esp + 0x14], eax
je 0x403d90
test ebp, ebp
je 0x403dc8
push ebp
call fcn.00404e43
add esp, 4
cmp dword [esp + 0x14], 0x103
jne 0x40404f
test edi, edi
je 0x40404f
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], 0
jmp 0x404013
mov eax, dword [esi + 0x120]
test eax, eax
je 0x403e3d
mov al, byte [esi + 0x3ac]
test al, al
lea edi, [esi + 0x3ac]
jne 0x403e3d
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + ebp*4]
mov edx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403e16
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403cda
test al, 0x10
je 0x403cda
jmp 0x404013
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + ebp*4]
mov al, byte [ecx]
cmp al, 0x2d
je 0x403e6f
cmp al, 0x2f
je 0x403e6f
cmp byte [esi], 0
jne 0x40405d
mov edx, esi
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403e60
jmp 0x404013
mov ebx, ecx
mov edi, 1
test ebx, ebx
je 0x404013
mov al, byte [ebx + 1]
inc ebx
test al, al
je 0x404013
movsx edx, al
push edx
call fcn.004054d3
add eax, 0xffffffc1
add esp, 4
cmp eax, 0x37
ja case.0x403ea9.64
movzx eax, byte [eax + 0x404210]
jmp dword [eax*4 + 0x4041e8]
mov dword [esp + 0x20], edi
jmp 0x403e76
mov eax, dword [esi + 0x104]
test eax, eax
jne 0x404001
mov dword [esi + 0x104], edi
jmp 0x403e76
mov eax, dword [esi + 0x108]
test eax, eax
jne 0x404001
mov dword [esi + 0x108], edi
jmp 0x403e76
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x404001
mov dword [esi + 0x10c], edi
jmp 0x403e76
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x404001
mov dword [esi + 0x110], edi
jmp 0x403e76
mov eax, dword [esi + 0x114]
test eax, eax
jne 0x404001
lea eax, [ebx + 1]
mov dword [esi + 0x114], edi
cmp byte [eax], 0
je 0x403e76
mov ecx, esi
sub ecx, eax
lea edx, [ecx + 0x124]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403f40
xor ebx, ebx
jmp 0x403e76
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x404001
lea eax, [ebx + 1]
mov dword [esi + 0x118], edi
cmp byte [eax], 0
je 0x403e76
mov edx, esi
sub edx, eax
add edx, 0x1a4
jmp 0x403f80
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403f80
xor ebx, ebx
jmp 0x403e76
mov eax, dword [esi + 0x11c]
test eax, eax
jne 0x404001
lea eax, [ebx + 1]
mov dword [esi + 0x11c], edi
cmp byte [eax], 0
je 0x403e76
mov ecx, esi
sub ecx, eax
lea edx, [ecx + 0x2a8]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403fb7
xor ebx, ebx
jmp 0x403e76
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x404001
lea eax, [ebx + 1]
mov dword [esi + 0x120], edi
cmp byte [eax], 0
je 0x403e76
mov edx, esi
sub edx, eax
add edx, 0x3ac
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403ff0
xor ebx, ebx
jmp 0x403e76
mov dword [esp + 0x10], 3
jmp 0x404013
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x4a8]
inc ebp
cmp ebp, eax
mov dword [esp + 0x18], ebp
jl 0x403c50
cmp dword [esp + 0x10], 3
ja 0x4041a1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp dword [eax*4 + 0x404248]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], 0xe
jmp 0x404032
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], 3
jmp 0x404032
mov dword [esp + 0x10], 1
jmp 0x404032
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40419a
mov eax, dword [esi + 0x104]
test eax, eax
je 0x404098
mov eax, dword [esi + 0x108]
test eax, eax
je 0x404098
push 0x400
lea ecx, [esp + 0x98]
push ecx
push 2
jmp 0x4040f6
mov eax, dword [esi + 0x114]
test eax, eax
je 0x4040bd
mov al, byte [esi + 0x124]
test al, al
jne 0x4040bd
push 0x400
lea ecx, [esp + 0x98]
push ecx
push 3
jmp 0x4040f6
cmp byte [esi], 0
jne 0x4040d3
push 0x400
lea ecx, [esp + 0x98]
push ecx
push 4
jmp 0x4040f6
mov eax, dword [esi + 0x118]
test eax, eax
je 0x404122
mov al, byte [esi + 0x1a4]
test al, al
jne 0x404122
push 0x400
lea ecx, [esp + 0x98]
push ecx
push 0x12
mov edx, dword [0x40e700]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x94]
push eax
push 0x40e0a8
call fcn.00404ee1
add esp, 8
mov edi, 0x57
jmp 0x4041a5
xor edi, edi
jmp 0x4041a5
push 0x400
lea ecx, [esp + 0x98]
push ecx
push 5
jmp 0x404170
mov ecx, dword [0x40e700]
push 0x400
lea eax, [esp + 0x98]
push eax
push 6
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
movsx edx, byte [ebx]
push edx
lea eax, [esp + 0x98]
push eax
jmp 0x40418d
push 0x400
lea ecx, [esp + 0x98]
push ecx
push 7
mov edx, dword [0x40e700]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + ebp*4]
push ecx
lea edx, [esp + 0x98]
push edx
push 0x40e0a8
call fcn.00404ee1
add esp, 0xc
mov edi, 0x57
jmp 0x4041a5
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x28]
mov dword [esp + 0x4a0], 0xffffffff
call fcn.004019f0
mov ecx, dword [esp + 0x498]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x488]
pop ebx
call fcn.00404e1d
add esp, 0x494
ret