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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x250], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x423d67
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042ba4c
mov ebx, eax
mov eax, ebx
call fcn.00418150
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x104
jl 0x423603
mov eax, dword [0x43211c]
mov dword [eax], 0x233f
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x423d49
mov eax, dword [0x431ee0]
cmp byte [eax], 0
je 0x42362e
mov edx, 0x423d78
mov ecx, 4
mov eax, ebx
call fcn.00413bd0
test eax, eax
jne 0x42362e
mov eax, 0x423d84
call fcn.00419fac
mov ebx, eax
lea eax, [ebp - 0x246]
mov ecx, 0x104
xor edx, edx
call fcn.00418244
lea eax, [ebp - 0x246]
mov edx, ebx
call fcn.00418160
lea eax, [ebp - 0x246]
mov dx, 0x2f
call fcn.0041c63c
mov word [ebp - 0x1e], 0x5c
mov word [ebp - 0x1c], 0x3a
mov word [ebp - 0x1a], 0
lea edx, [ebp - 0x1e]
lea eax, [ebp - 0x246]
call fcn.00418188
cmp eax, dword [ebp - 0x28]
setl byte [ebp - 0x31]
mov word [ebp - 0x1c], 0
cmp byte [ebp - 0x31], 0
je 0x4236ba
lea eax, [ebp - 0x246]
mov dx, 0x5c
call fcn.00418108
mov ebx, eax
test ebx, ebx
jne 0x4236b5
lea eax, [ebp - 0x246]
mov dx, 0x3a
call fcn.004180e0
mov ebx, eax
add ebx, 2
jmp 0x4236c0
lea ebx, [ebp - 0x246]
test ebx, ebx
je 0x4236e4
mov edx, 0x423d94
mov eax, ebx
call fcn.00413afc
test eax, eax
je 0x4236e4
mov edx, 0x423d98
mov eax, ebx
call fcn.00413afc
test eax, eax
jne 0x42371e
mov eax, dword [0x431ee0]
cmp byte [eax], 0
je 0x423709
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423709
test al, 0x10
je 0x423709
mov dword [ebp - 8], 5
jmp 0x423d49
mov eax, dword [0x43211c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x423d49
mov eax, 0x410
call fcn.0042a1e8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x423748
mov eax, dword [0x43211c]
mov dword [eax], 8
mov dword [ebp - 8], 3
jmp 0x423d49
lea edx, [ebp - 0x246]
mov eax, edi
call fcn.00418160
mov eax, ebx
call fcn.00406e1c
mov esi, eax
lea eax, [ebp - 0x246]
call fcn.00418150
cdq
push edx
push eax
mov eax, esi
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov word [edi + eax*2], 0
mov edx, 0x423d94
mov eax, edi
call fcn.00418174
mov ecx, 0x208
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.0041bda4
test eax, eax
je 0x4237d8
mov eax, dword [0x431ee0]
cmp byte [eax], 0
je 0x4237c3
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4237c3
test al, 0x10
je 0x4237c3
mov dword [ebp - 8], 5
jmp 0x423d49
mov eax, dword [0x43211c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x423d49
mov eax, dword [ebp - 0x14]
call fcn.00418254
cmp word [eax], 0x5c
je 0x4237f3
mov edx, 0x423da0
mov eax, dword [ebp - 0x14]
call fcn.00418174
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00418174
mov eax, dword [ebp - 0x14]
call fcn.00418150
inc eax
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0042a294
mov dword [ebp - 0x14], eax
mov dx, 0x5c
mov eax, dword [ebp - 0x14]
call fcn.00418108
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov word [eax], 0
add dword [ebp - 0x10], 2
movzx ebx, byte [ebp - 0x31]
xor bl, 1
test bl, bl
je 0x423848
mov eax, 0x423da4
call fcn.00419fac
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
call fcn.00418150
mov esi, eax
add esi, 2
mov eax, dword [ebp - 0x18]
call fcn.00418150
add esi, eax
add esi, 2
mov eax, esi
add eax, eax
call fcn.0042a1e8
mov esi, eax
test esi, esi
jne 0x423888
mov eax, dword [0x43211c]
mov dword [eax], 8
mov dword [ebp - 8], 3
jmp 0x423d49
mov edx, 0x423db0
mov eax, esi
call fcn.00418174
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00418174
mov edx, 0x423db0
mov eax, esi
call fcn.00418174
test bl, bl
je 0x4238c4
mov edx, 0x423db4
mov eax, esi
call fcn.00418174
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00418174
mov eax, esi
call fcn.004242c0
mov edx, 0x423db4
mov ecx, 1
mov eax, esi
call fcn.0042a374
mov esi, eax
mov eax, dword [ebp - 0x10]
call fcn.00418150
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x431ee0]
cmp byte [eax], 0
je 0x423903
mov eax, 0x423db8
call fcn.00419fac
mov dword [ebp - 0xc], eax
jmp 0x42390b
mov eax, 0x423dc8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.004242c0
mov edx, 0x423db4
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.0042a374
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.00418150
mov dword [ebp - 0x2c], eax
mov eax, esi
call fcn.0042ba4c
mov edx, eax
mov eax, esi
call fcn.00418160
mov eax, esi
call fcn.00418150
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.00418254
cmp word [eax], 0x5c
je 0x423965
mov byte [ebp - 0x32], 1
inc dword [ebp - 0x2c]
inc dword [ebp - 0x3c]
jmp 0x423969
mov byte [ebp - 0x32], 0
cmp word [esi], 0
je 0x4239b2
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x423992
cmp eax, 0x104
jbe 0x4239b2
jmp 0x423994
jle 0x4239b2
cmp byte [ebp - 0x32], 0
je 0x4239a3
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
jmp 0x423928
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
add esi, 2
jmp 0x423928
cmp word [esi], 0
jne 0x4239f4
cmp byte [ebp - 0x31], 0
je 0x4239df
mov eax, dword [0x43211c]
cmp dword [eax], 0
je 0x4239d2
mov eax, dword [0x43211c]
cmp dword [eax], 2
jne 0x4239ea
mov eax, dword [0x43211c]
mov dword [eax], 0x2331
jmp 0x4239ea
mov eax, dword [0x43211c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x423d49
mov edx, esi
mov eax, edi
call fcn.00418160
cmp byte [ebp - 0x32], 0
je 0x423a0c
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
jmp 0x423a16
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
add esi, 2
cmp byte [ebp - 0x32], 0
je 0x423a26
lea edx, [ebp - 0x1e]
mov eax, edi
call fcn.00418174
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00418174
mov eax, edi
call fcn.0042ba4c
mov edx, eax
mov eax, edi
call fcn.00418160
mov eax, edi
call fcn.00418150
mov dword [ebp - 0x30], eax
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x423a63
movzx eax, word [edi]
call fcn.0042b948
test al, al
je 0x423928
mov dx, 0x2e
mov eax, dword [ebp - 0x10]
call fcn.00418108
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x423b74
mov eax, dword [ebp - 0x38]
cmp word [eax + 2], 0
je 0x423b74
mov dl, 1
mov eax, edi
call fcn.0041c578
test al, al
jne 0x423aaf
cmp byte [ebp - 0x31], 0
je 0x423b5c
mov eax, dword [0x43211c]
cmp dword [eax], 5
jne 0x423b5c
lea eax, [ebp - 0x250]
call fcn.0041801c
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
call fcn.00413928
mov eax, dword [ebp - 0x24c]
call fcn.00407120
push eax
lea eax, [ebp - 0x258]
mov edx, edi
call fcn.00407178
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
call fcn.00413928
mov eax, dword [ebp - 0x254]
call fcn.00407120
pop edx
call fcn.00413b28
test eax, eax
jne 0x423b16
mov dword [ebp - 8], 2
jmp 0x423d49
mov edx, 0x423df0
mov eax, dword [ebp - 0x38]
call fcn.00413b28
test eax, eax
jne 0x423b33
mov dword [ebp - 8], 2
jmp 0x423d49
mov edx, 0x423dfc
mov eax, dword [ebp - 0x38]
call fcn.00413b28
test eax, eax
jne 0x423b50
mov dword [ebp - 8], 2
jmp 0x423d49
mov dword [ebp - 8], 1
jmp 0x423d49
mov eax, dword [0x43211c]
cmp dword [eax], 2
je 0x423b74
mov eax, dword [0x43211c]
cmp dword [eax], 0
jne 0x423928
mov dx, 0x2a
mov eax, dword [ebp - 0x10]
call fcn.004180e0
test eax, eax
jne 0x423b94
mov dx, 0x3f
mov eax, dword [ebp - 0x10]
call fcn.004180e0
test eax, eax
je 0x423ba9
mov eax, dword [0x43211c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x423d49
mov ebx, dword [ebp - 0xc]
push 0
mov ecx, 0x423e08
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.00423e10
test eax, eax
je 0x423cec
jmp 0x423ce2
mov eax, ebx
call fcn.00418150
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov eax, dword [ebp - 0x3c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x423c05
cmp eax, 0x104
ja 0x423cd9
jmp 0x423c0b
jg 0x423cd9
push 1
mov ecx, ebx
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.00423e10
test eax, eax
je 0x423cc0
mov edx, 0x423dfc
mov eax, ebx
call fcn.00413b28
test eax, eax
je 0x423c41
mov edx, 0x423df0
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x423c4d
mov dword [ebp - 8], 2
jmp 0x423d49
lea eax, [ebp - 0x260]
call fcn.0041801c
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x25c]
call fcn.00413928
mov eax, dword [ebp - 0x25c]
call fcn.00407120
push eax
lea eax, [ebp - 0x268]
mov edx, edi
call fcn.00407178
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x264]
call fcn.00413928
mov eax, dword [ebp - 0x264]
call fcn.00407120
pop edx
call fcn.00413b28
test eax, eax
jne 0x423cb4
mov dword [ebp - 8], 2
jmp 0x423d49
mov dword [ebp - 8], 1
jmp 0x423d49
mov eax, dword [0x43211c]
cmp dword [eax], 2
je 0x423cd9
mov eax, dword [0x43211c]
cmp dword [eax], 0
jne 0x423cec
jmp 0x423cd9
add ebx, 2
cmp word [ebx], 0
jne 0x423cd6
add ebx, 2
cmp word [ebx], 0
jne 0x423bca
mov eax, dword [0x43211c]
cmp dword [eax], 0
je 0x423d04
mov eax, dword [0x43211c]
cmp dword [eax], 2
jne 0x423928
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.00423e10
test eax, eax
je 0x423928
lea eax, [ebp - 0x24]
push eax
push edi
call sub.kernel32.dll_GetBinaryTypeW
test eax, eax
je 0x423928
cmp dword [ebp - 0x24], 4
jne 0x423928
mov dword [ebp - 8], 1
jmp 0x423d49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423d6e
lea eax, [ebp - 0x268]
mov edx, 8
call fcn.00406a34
ret