Function at 0x407340
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 0x572ffc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x5b3ef4]
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 [0x5b96f0]
cmp eax, dword [ecx + 8]
jg 0x407b79
cmp byte [0x5b450c], 0
je 0x407b51
mov eax, dword [0x5b4504]
mov dword [ebp - 0xc0], eax
cmp eax, 0x64
je 0x407b51
mov ecx, edi
call fcn.0041bd70
test al, al
jne 0x407b51
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 0x592f38
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 0x40749a
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407490
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bcd
push edx
push ecx
call fcn.0053140c
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 0x407601
nop dword [eax]
lea eax, [esi + 8]
cmp dword [esi], edi
jne 0x4074fd
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x4075f1
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4074ec
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402e60
jmp 0x4075f1
push 0x592f38
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0040bd70
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x407520
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 0x407592
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 0x4075ad
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 0x4075f1
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4075e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bcd
push edx
push ecx
call fcn.0053140c
add esp, 8
mov esi, dword [esi]
mov dword [ebp - 0xcc], esi
cmp esi, edi
jne 0x4074d0
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
test eax, eax
je 0x407639
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea esi, [edx + ecx*2]
je 0x407633
cmp esi, edx
je 0x407639
sub esi, 2
cmp word [esi], 0x2e
jne 0x407626
sub esi, edx
sar esi, 1
jmp 0x40763c
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 0x407bd2
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 0x594860
push eax
lea eax, [ebp - 0xbc]
push 0x594864
push eax
call fcn.004014d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x407718
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 0x407758
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40774e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bd7
push edx
push ecx
call fcn.0053140c
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x44]
call fcn.0040bea0
add esp, 4
cmp byte [ebx + 8], 0
mov byte [ebp - 4], 8
je 0x40799c
lea ecx, [ebp - 0x44]
call fcn.004099d0
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 0x4077d5
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4077cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bdc
push edx
push ecx
call fcn.0053140c
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 0x407823
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407819
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407be1
push edx
push ecx
call fcn.0053140c
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 0x407871
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407867
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407be6
push edx
push ecx
call fcn.0053140c
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 0x4078fb
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0xc0], eax
cmp ecx, 8
jb 0x4078d2
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4078c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bcd
mov eax, edx
push ecx
push eax
call fcn.0053140c
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.0053140c
mov esi, dword [ebp - 0xc0]
add esp, 8
cmp esi, edi
jne 0x407890
push 0x20
push edi
call fcn.0053140c
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 8
jb 0x407940
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407936
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407beb
push edx
push ecx
call fcn.0053140c
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 0x407991
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407987
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bf0
push edx
push ecx
call fcn.0053140c
add esp, 8
mov eax, dword [ebp - 0xc8]
jmp 0x407b5b
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 0x407a01
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4079f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bf5
push edx
push ecx
call fcn.0053140c
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 0x407a4f
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bfa
push edx
push ecx
call fcn.0053140c
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 0x407a9d
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bff
push edx
push ecx
call fcn.0053140c
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 0x407b2b
nop dword [eax]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0xc0], eax
cmp ecx, 8
jb 0x407b02
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x407af8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bcd
mov eax, edx
push ecx
push eax
call fcn.0053140c
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.0053140c
mov esi, dword [ebp - 0xc0]
add esp, 8
cmp esi, edi
jne 0x407ac0
push 0x20
push edi
call fcn.0053140c
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00403070
lea ecx, [ebp - 0x8c]
call fcn.00403070
mov eax, dword [ebp - 0xc8]
jmp 0x407b5b
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.0053287b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x5b96f0
call fcn.00531854
add esp, 4
cmp dword [0x5b96f0], 0xffffffff
jne 0x4073b6
push 0x5773d0
mov dword [0x5b4504], 0x64
mov dword [0x5b4508], 0xffffffff
mov byte [0x5b450c], 0
call fcn.00531682
add esp, 4
push 0x5b96f0
call fcn.0053180a
add esp, 4
jmp 0x4073b6
call fcn.0055d660
call fcn.00402410
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
int3