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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f15d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00421e00
mov dword [ebp - 0x48], eax
mov edx, 2
test eax, eax
js 0x423d86
add eax, eax
mov dword [ebp - 0x20], eax
add eax, esi
cmp word [eax + 2], 0
je 0x423d86
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x4c], ebx
cmp word [eax], cx
je 0x4239ba
mov edi, edi
inc ebx
cmp word [eax + ebx*2], cx
jne 0x4239b0
mov dword [ebp - 0x4c], ebx
xor ecx, ecx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
lea ecx, [ebx*2 + 2]
mov dword [ebp - 0x1c], eax
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, esi
mov dword [ebp - 0x18], ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov dword [ebp - 4], 0
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], ebx
cmp word [esi], ax
je 0x423a1a
lea ebx, [ebx]
inc ebx
cmp word [esi + ebx*2], ax
jne 0x423a10
mov dword [ebp - 0x44], ebx
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
lea ecx, [ebx*2 + 2]
mov dword [ebp - 0x2c], eax
push ecx
push esi
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
cmp eax, ebx
jae 0x423a6b
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov word [ecx + eax], dx
mov eax, dword [ebp - 0x4c]
cmp eax, 6
jbe 0x423a8a
mov ebx, dword [ebp - 0x1c]
lea ecx, [eax - 6]
mov edx, str.:_DATA
lea ecx, [ebx + ecx*2]
call fcn.004215a0
test al, al
jne 0x423ace
xor ebx, ebx
lea esp, [esp]
inc ebx
cmp byte [ebx + str.:_DATA], 0
jne 0x423a90
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00421690
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
lea edx, [eax + ecx*2]
xor ecx, ecx
test ebx, ebx
je 0x423ac2
movzx eax, byte [ecx + str.:_DATA]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x423ab2
xor eax, eax
add dword [ebp - 0x18], ebx
mov word [edx + ebx*2], ax
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx]
or eax, 0x20
sub eax, 0x61
cmp eax, 0x19
ja 0x423bb7
cmp word [ecx + 2], 0x3a
jne 0x423bb7
mov edx, dword [ebp - 0x48]
cmp edx, 2
je 0x423b0a
cmp edx, 3
jne 0x423bb7
cmp word [ecx + 4], 0x5c
jne 0x423bb7
mov ebx, dword [ebp - 0x44]
lea ecx, [edi + 0x28]
mov dword [edi], 0
xor esi, esi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov word [edi + 0x24], 0
mov eax, dword [ecx]
mov dword [ecx + 4], 0
mov word [eax], si
cmp edx, 2
jne 0x423bcd
lea eax, [ebp - 0x2c]
cmp eax, ecx
je 0x423bcd
cmp ebx, dword [ecx + 8]
jbe 0x423b9c
xor ecx, ecx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
push dword [edi + 0x28]
mov esi, eax
call fcn.00449b03
lea ecx, [edi + 0x28]
add esp, 8
mov dword [ecx], esi
mov dword [ecx + 8], ebx
lea eax, [ebx*2 + 2]
mov dword [ecx + 4], ebx
push eax
mov eax, dword [ebp - 0x2c]
push eax
push dword [ecx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x423bcd
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.00423940
test al, al
je 0x423d74
mov ebx, dword [ebp - 0x44]
and dword [edi + 0x20], 0xfffffbef
xor eax, eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], 0xffffffff
mov byte [ebp - 4], 2
lea esi, [ebx + 1]
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
lea ecx, [esi + esi]
mov dword [ebp - 0x34], ebx
push ecx
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x38], eax
call sub.msvcrt.dll_memcpy
push 8
mov byte [ebp - 4], 3
call fcn.00449b46
xor ecx, ecx
mov dword [ebp - 0x64], eax
add esp, 0x14
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 3
mov word [eax], cx
lea eax, [ebp - 0x3d]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00423830
test al, al
je 0x423d35
lea esp, [esp]
cmp byte [ebp - 0x3d], 0
je 0x423d2d
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x64]
call fcn.00409910
test al, al
jne 0x423ccf
mov byte [ebp - 4], 3
push dword [ebp - 0x64]
call fcn.00449b03
push 8
call fcn.00449b46
xor ecx, ecx
mov dword [ebp - 0x64], eax
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 3
mov word [eax], cx
lea eax, [ebp - 0x3d]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00423830
test al, al
jne 0x423c70
jmp 0x423d35
mov ebx, dword [ebp - 0x60]
cmp ebx, 7
jbe 0x423cec
lea ecx, [ebx - 6]
cmp ecx, ebx
jae 0x423cec
mov eax, dword [ebp - 0x64]
mov ebx, ecx
xor edx, edx
mov dword [ebp - 0x60], ebx
mov word [eax + ecx*2], dx
push ebx
lea ecx, [edi + 0x28]
call fcn.00421690
mov ecx, dword [edi + 0x2c]
lea eax, [ebx*2 + 2]
push eax
mov eax, dword [edi + 0x28]
push dword [ebp - 0x64]
lea eax, [eax + ecx*2]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x54]
add esp, 0xc
add dword [edi + 0x2c], ebx
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov byte [edi + 0x24], 1
mov byte [ebp - 0x3d], 1
jmp 0x423d39
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x3d], 0
push dword [ebp - 0x64]
call fcn.00449b03
push dword [ebp - 0x38]
call fcn.00449b03
mov eax, dword [ebp - 0x3c]
add esp, 8
cmp eax, 0xffffffff
je 0x423d5b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.00449b03
push dword [ebp - 0x1c]
call fcn.00449b03
mov al, byte [ebp - 0x3d]
add esp, 8
jmp 0x424110
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00449b03
push ebx
call fcn.00449b03
add esp, 8
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], 5
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x5c
je 0x423da3
cmp ecx, 0x2f
jne 0x423dd8
movzx eax, word [esi + 2]
mov edx, eax
cmp eax, 0x5c
je 0x423db3
cmp edx, 0x2f
jne 0x423dd8
cmp word [esi + 4], 0x3f
jne 0x423dd8
movzx eax, word [esi + 6]
mov edx, eax
cmp eax, 0x5c
je 0x423dca
cmp edx, 0x2f
jne 0x423dd8
mov dword [ebp - 0x44], 8
mov ebx, 0xe
jmp 0x423de4
mov dword [ebp - 0x44], 0
mov ebx, 6
mov edx, 2
mov eax, esi
add eax, edx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
movzx eax, word [edx + esi]
or eax, 0x20
sub eax, 0x61
cmp eax, 0x19
ja 0x423ec5
cmp word [edx + esi + 2], 0x3a
jne 0x423ec5
movzx eax, word [edx + esi + 4]
mov edx, eax
cmp eax, 0x5c
je 0x423e27
cmp edx, 0x2f
jne 0x423ec5
cmp word [ebx + esi], 0
jne 0x423ebd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4240d5
test al, 0x10
je 0x4240d5
mov dword [edi], 0
lea ecx, [edi + 0x28]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x44]
add eax, esi
mov word [edi + 0x24], 0
push eax
call fcn.004217a0
cmp dword [edi + 0x2c], 2
jbe 0x423eae
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0x2c], 2
mov word [eax + 4], cx
push esi
mov ecx, edi
call fcn.004241a0
mov bl, 1
jmp 0x42410e
mov edx, dword [ebp - 0x48]
lea eax, [esi + 2]
jmp 0x423eca
mov edx, dword [ebp - 0x48]
mov eax, edx
cmp ecx, 0x5c
je 0x423eda
mov eax, edx
cmp ecx, 0x2f
jne 0x4240d5
cmp word [eax], 0
jne 0x423f51
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4240d5
test cl, 0x10
je 0x4240d5
mov dword [edi], 0
xor edx, edx
mov dword [edi + 4], 0
mov bl, 1
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x24], 0
mov eax, dword [edi + 0x28]
mov dword [edi + 0x2c], 0
mov word [eax], dx
mov dword [edi + 0x20], ecx
jmp 0x42410e
mov ecx, esi
call fcn.00421d80
test eax, eax
je 0x4240d5
lea ebx, [esi + eax*2]
movzx eax, word [ebx]
mov dword [ebp - 0x4c], ebx
mov edx, eax
test ax, ax
je 0x4240d5
mov ecx, ebx
cmp ax, 0x5c
je 0x423f90
cmp ax, 0x2f
je 0x423f90
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x423f76
jmp 0x423f9a
sub ecx, ebx
sar ecx, 1
jns 0x4240d5
push esi
mov ecx, edi
call fcn.004241a0
test al, al
je 0x423fb6
lea ecx, [edi + 0x28]
push ebx
call fcn.004217a0
mov bl, 1
jmp 0x42410e
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp word [esi], ax
je 0x423fcf
inc ebx
cmp word [esi + ebx*2], ax
jne 0x423fc8
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
lea ecx, [ebx*2 + 2]
mov dword [ebp - 0x1c], eax
push ecx
push esi
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00421600
mov eax, dword [ebp - 0x18]
mov ecx, 0x5c
mov ebx, dword [ebp - 0x1c]
mov word [ebx + eax*2], cx
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [ebx + eax*2], cx
cmp dword [ebp - 0x14], eax
jne 0x42403b
lea ecx, [ebp - 0x1c]
call fcn.00421600
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov ecx, 0x2a
mov word [ebx + eax*2], cx
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
push edi
mov byte [ebp - 0x3d], cl
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
push ebx
call fcn.00423750
test al, al
je 0x4240ab
lea eax, [edi + 0x28]
mov ecx, 0x452ca4
mov dword [ebp - 0x48], eax
mov eax, dword [eax]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424096
test dx, dx
je 0x424092
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424096
add eax, 4
add ecx, 4
test dx, dx
jne 0x424070
xor eax, eax
jmp 0x42409b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4240a7
mov ecx, dword [ebp - 0x48]
jmp 0x42417b
mov byte [ebp - 0x3d], 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4240b9
or eax, eax
cmp byte [ebp - 0x3d], 0
jne 0x42412e
cmp eax, 0xffffffff
je 0x4240c8
test al, 0x10
jne 0x42412e
push ebx
mov byte [ebp - 4], 5
call fcn.00449b03
add esp, 4
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.00423750
cmp byte [ebp + 0xc], 0
mov bl, al
je 0x4240ff
test bl, bl
je 0x4240ff
mov eax, dword [edi + 0x20]
shr eax, 0xa
test al, 1
je 0x4240ff
push esi
mov ecx, edi
call fcn.004241a0
mov bl, al
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42410e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x24], 0
cmp eax, 0xffffffff
jne 0x424175
mov eax, 0x10
mov dword [edi + 0x20], eax
lea ecx, [edi + 0x28]
push dword [ebp - 0x4c]
call fcn.004217a0
push ebx
call fcn.00449b03
add esp, 4
mov bl, 1
jmp 0x4240ff