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

Disassembly:
push 0xffffffffffffffff
push 0x5144b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 4
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4977b1
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 5
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
push eax
call fcn.00403680
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
push 1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.00402780
push 0x5227e0
push eax
call fcn.00402c00
mov bl, al
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x497822
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49783a
push 1
push 0x5227e0
lea ecx, [esp + 0x20]
call fcn.004030e0
mov esi, dword [esp + 0x18]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00402d60
call fcn.00402190
lea ebp, [esi - 0x10]
push ebp
call fcn.00403680
lea esi, [eax + 0x10]
add esp, 8
mov dword [esp + 0x2c], esi
mov byte [esp + 0x38], 7
cmp dword [esi - 4], 1
jle 0x49787b
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x30]
call fcn.00403270
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi - 8]
setne dl
push eax
push esi
mov edi, edx
call fcn.004df755
add esp, 8
test eax, eax
jl 0x497fd0
cmp eax, dword [esi - 8]
jg 0x497fd0
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov byte [esp + 0x38], 6
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4978d4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
test edi, edi
je 0x497b23
push ebp
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 8
mov eax, dword [esp + 0x48]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004030e0
push 4
push str..lnk
lea ecx, [esp + 0x24]
call fcn.004030e0
mov edi, dword [esp + 0x1c]
push ecx
lea ebx, [edi - 0x10]
mov dword [esp + 0x30], esp
mov esi, esp
push ebx
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004a1391
add esp, 4
test eax, eax
je 0x497adb
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x497959
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x38], 9
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x497988
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x38], 0xa
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x3c], 0xb
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov byte [esp + 0x48], 0xc
call fcn.0049eb8e
add esp, 0x10
lea edi, [esp + 0x24]
mov esi, eax
call fcn.004026f0
lea edi, [esp + 0x2c]
call fcn.004026f0
lea edi, [esp + 0x20]
call fcn.004026f0
lea edi, [esp + 0x28]
call fcn.004026f0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00402b40
add esp, 8
test al, al
je 0x497a45
test esi, esi
je 0x497a45
mov edx, edi
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00402b40
add esp, 8
test al, al
je 0x497a45
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403060
mov byte [esp + 0x38], 0xb
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x497a6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0xa
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497a8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 9
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497ab4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 8
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497b05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x497b05
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
push ecx
push edx
push edi
push eax
call fcn.0049e8b8
add esp, 0x10
test eax, eax
je 0x497b05
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403060
mov byte [esp + 0x38], 6
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x497b23
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x497c59
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00403680
mov edi, dword [esp + 0x44]
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
lea edx, [ebp + 0xc]
mov byte [esp + 0x3c], 5
add esp, 4
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x497b69
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x38], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497b87
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497bac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497bd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497c1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497c43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x58]
cmp dword [ecx - 0xc], 0
je 0x497b31
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403060
push 1
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call fcn.00402780
push 0x5227e0
push eax
call fcn.00402c00
mov bl, al
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497cb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497cc7
push 0x5227e0
lea ecx, [esp + 0x1c]
call fcn.00402650
mov esi, dword [esp + 0x18]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push esi
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004a1391
add esp, 4
test eax, eax
jne 0x497e1a
mov edi, dword [esp + 0x14]
add edi, 0xfffffff0
push edi
call fcn.00403680
mov ebx, dword [esp + 0x44]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x38], 5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497d2a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
or ecx, 0xffffffff
lea eax, [edi + 0xc]
mov byte [esp + 0x38], 4
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x497d48
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497d6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497d92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497db7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push esi
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 0xd
mov eax, dword [esp + 0x48]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004030e0
push str..lnk
lea ecx, [esp + 0x20]
call fcn.00402650
mov ebx, dword [esp + 0x1c]
push ecx
lea ebp, [ebx - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push ebp
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004a1391
add esp, 4
test eax, eax
je 0x497f65
lea ecx, [esp + 0x20]
call fcn.00402450
lea ecx, [esp + 0x24]
call fcn.00402450
mov byte [esp + 0x38], 0xf
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x3c], 0x10
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
mov byte [esp + 0x48], 0x11
call fcn.0049eb8e
add esp, 0x10
lea edi, [esp + 0x20]
mov ebx, eax
call fcn.004026f0
lea edi, [esp + 0x28]
call fcn.004026f0
lea edi, [esp + 0x24]
call fcn.004026f0
lea edi, [esp + 0x2c]
call fcn.004026f0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402b40
add esp, 8
test al, al
je 0x497f3a
test ebx, ebx
je 0x497f3a
mov edx, edi
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00402b40
add esp, 8
test al, al
je 0x497f3a
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403060
lea ecx, [esp + 0x2c]
call fcn.00403040
lea ecx, [esp + 0x28]
call fcn.00403040
lea ecx, [esp + 0x24]
call fcn.00403040
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0xd
call fcn.00403040
jmp 0x497f8f
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
push edx
push eax
push ebx
push ecx
call fcn.0049e8b8
add esp, 0x10
test eax, eax
je 0x497f8f
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.00403060
mov edi, dword [esp + 0x14]
add edi, 0xfffffff0
push edi
call fcn.00403680
mov ebx, dword [esp + 0x44]
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [esp + 0x38], 6
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x497d0c
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
jmp 0x497d0c
push 0x80070057
call fcn.00401ff0
int3