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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5739bc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x5b4ef4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0xd0], edi
mov esi, ecx
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc0], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0xc0], esi
mov ecx, dword [eax]
mov eax, dword [0x5ba7f0]
cmp eax, dword [ecx + 8]
jg 0x407bb9
cmp byte [0x5b550c], 0
je 0x407b91
mov eax, dword [0x5b5504]
mov dword [ebp - 0xc0], eax
cmp eax, 0x64
je 0x407b91
mov ecx, edi
call fcn.0041c0c0
test al, al
jne 0x407b91
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
push 1
push 0x594568
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
call fcn.00402e60
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.004019c0
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x4074da
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4074d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c0d
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov edi, dword [ebp - 0xe0]
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov esi, dword [edi]
mov dword [ebp - 0xcc], esi
cmp esi, edi
je 0x407641
nop dword [eax]
lea eax, [esi + 8]
cmp dword [esi], edi
jne 0x40753d
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x407631
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40752c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402e60
jmp 0x407631
push 0x594568
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0040bff0
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x407560
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0xc4]
mov dword [ebp - 0xd4], ecx
cmp ecx, eax
ja 0x4075d2
mov eax, dword [ebp - 0xc4]
lea edi, [ebp - 0x8c]
add eax, ecx
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x7c], eax
lea eax, [ecx + ecx]
cmovae edi, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xc4]
push edx
lea eax, [edi + eax*2]
push eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0xd4]
add esp, 0xc
add eax, dword [ebp - 0xc4]
xor esi, esi
mov word [edi + eax*2], si
mov esi, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xe0]
jmp 0x4075ed
push ecx
push edx
mov byte [ebp - 0xd8], 0
push dword [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00402470
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x407631
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407627
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c0d
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov esi, dword [esi]
mov dword [ebp - 0xcc], esi
cmp esi, edi
jne 0x407510
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
test eax, eax
je 0x407679
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea esi, [edx + ecx*2]
je 0x407673
cmp esi, edx
je 0x407679
sub esi, 2
cmp word [esi], 0x2e
jne 0x407666
sub esi, edx
sar esi, 1
jmp 0x40767c
or esi, 0xffffffff
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp ecx, esi
jb 0x407c12
sub ecx, esi
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x74]
lea eax, [eax + esi*2]
push eax
call fcn.00402e60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x1c], esi
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x2c]
cmovb esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 8
push esi
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x48], 7
call fcn.00402e60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x48], 8
push ecx
push dword [ebp - 0xc0]
cmovae eax, dword [ebp - 0x5c]
push 0x595e90
push eax
lea eax, [ebp - 0xbc]
push 0x595e94
push eax
call fcn.004014d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x407758
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x407798
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40778e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c17
push edx
push ecx
call fcn.00531d2c
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x44]
call fcn.0040c120
add esp, 4
cmp byte [ebx + 8], 0
mov byte [ebp - 4], 8
je 0x4079dc
lea ecx, [ebp - 0x44]
call fcn.00409b20
test eax, eax
lea ecx, [ebp - 0x44]
cmove ecx, dword [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0xc8]
call fcn.00403190
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x407815
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40780b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c1c
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x407863
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407859
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c21
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov edx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x4078b1
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4078a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c26
push edx
push ecx
call fcn.00531d2c
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp esi, edi
je 0x40793b
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0xc0], eax
cmp ecx, 8
jb 0x407912
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x407908
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c0d
mov eax, edx
push ecx
push eax
call fcn.00531d2c
add esp, 8
xor eax, eax
mov dword [esi + 0x18], 0
push 0x20
mov dword [esi + 0x1c], 7
push esi
mov word [esi + 8], ax
call fcn.00531d2c
mov esi, dword [ebp - 0xc0]
add esp, 8
cmp esi, edi
jne 0x4078d0
push 0x20
push edi
call fcn.00531d2c
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 8
jb 0x407980
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407976
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c2b
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov edx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x4079d1
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4079c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c30
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov eax, dword [ebp - 0xc8]
jmp 0x407b9b
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x44]
cmove ecx, dword [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0xc8]
call fcn.00403190
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x407a41
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c35
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x407a8f
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c3a
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov edx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x407add
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407ad3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c3f
push edx
push ecx
call fcn.00531d2c
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp esi, edi
je 0x407b6b
nop dword [eax]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0xc0], eax
cmp ecx, 8
jb 0x407b42
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x407b38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c0d
mov eax, edx
push ecx
push eax
call fcn.00531d2c
add esp, 8
xor eax, eax
mov dword [esi + 0x18], 0
push 0x20
mov dword [esi + 0x1c], 7
push esi
mov word [esi + 8], ax
call fcn.00531d2c
mov esi, dword [ebp - 0xc0]
add esp, 8
cmp esi, edi
jne 0x407b00
push 0x20
push edi
call fcn.00531d2c
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00403070
lea ecx, [ebp - 0x8c]
call fcn.00403070
mov eax, dword [ebp - 0xc8]
jmp 0x407b9b
push edi
mov ecx, esi
call fcn.00403190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053325b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x5ba7f0
call fcn.00532174
add esp, 4
cmp dword [0x5ba7f0], 0xffffffff
jne 0x4073f6
push 0x578090
mov dword [0x5b5504], 0x64
mov dword [0x5b5508], 0xffffffff
mov byte [0x5b550c], 0
call fcn.00531fa2
add esp, 4
push 0x5ba7f0
call fcn.0053212a
add esp, 4
jmp 0x4073f6
call fcn.0055e070
call fcn.00402410
call fcn.0055e070
call fcn.0055e070
call fcn.0055e070
call fcn.0055e070
call fcn.0055e070
call fcn.0055e070
call fcn.0055e070
call fcn.0055e070
call fcn.0055e070
int3