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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4ad33b78]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push dword [eax + 0x38]
xor ebx, ebx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ebx
call fcn.4ad01349
mov esi, eax
cmp esi, ebx
je 0x4ad0a617
push esi
call dword [fcn.4ad012dc]
pop ecx
mov dword [ebp - 0x220], eax
mov edi, 0x104
cmp dword [ebp - 0x220], edi
jae 0x4ad1322e
cmp byte [0x4ad2fa64], 0
je 0x4ad033c4
cmp esi, ebx
je 0x4ad1323d
push 4
push 0x4ad03810
push esi
call dword [0x4ad012b4]
add esp, 0xc
test eax, eax
je 0x4ad1323d
push edi
push ebx
lea eax, [ebp - 0x214]
push eax
call fcn.4ad02ae3
cmp esi, ebx
je 0x4ad033e6
lea eax, [ebp - 0x214]
push esi
push eax
call dword [fcn.4ad012d8]
pop ecx
pop ecx
xor eax, eax
mov ax, word [0x4ad33b88]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.4ad03829
mov ax, word [0x4ad33b8c]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], bx
call fcn.4ad029cb
cmp eax, dword [ebp - 0x220]
mov word [ebp - 0xa], bx
sbb eax, eax
neg eax
mov dword [ebp - 0x220], eax
je 0x4ad03a22
xor eax, eax
mov ax, word [0x4ad33b8c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.4ad01a53
mov edi, eax
cmp edi, ebx
je 0x4ad13260
inc edi
inc edi
cmp word [edi], bx
je 0x4ad0a670
mov esi, dword [0x4ad012b0]
push 0x4ad01a9c
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x4ad0a670
push 0x4ad01a94
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x4ad0a670
push 0x410
call fcn.4ad01711
mov ebx, eax
test ebx, ebx
je 0x4ad13275
cmp dword [ebp - 0x218], 0
je 0x4ad034bf
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
call dword [fcn.4ad012d8]
pop ecx
pop ecx
mov esi, dword [fcn.4ad01284]
lea eax, [ebp - 0x214]
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp - 0x218]
sar ecx, 1
and word [eax + ecx*2], 0
test eax, eax
je 0x4ad034ea
push 0x4ad01a9c
push eax
call esi
pop ecx
pop ecx
push 0x208
push dword [ebp - 0x218]
push ebx
call fcn.4ad01aa5
test eax, eax
jne 0x4ad0a670
push ebx
call fcn.4ad01a79
mov ax, word [eax]
cmp ax, word [0x4ad33b8c]
je 0x4ad0351f
push 0x4ad0136c
push ebx
call esi
pop ecx
pop ecx
push edi
push ebx
call esi
push ebx
call dword [fcn.4ad012dc]
add esp, 0xc
lea eax, [eax + eax + 2]
push eax
push ebx
call fcn.4ad0177c
mov ebx, eax
test ebx, ebx
je 0x4ad13275
xor eax, eax
mov ax, word [0x4ad33b8c]
push eax
push ebx
call fcn.4ad01a53
and word [eax], 0
inc eax
inc eax
cmp dword [ebp - 0x220], 0
mov dword [ebp - 0x224], eax
je 0x4ad03a2d
mov esi, dword [fcn.4ad012dc]
push ebx
call esi
mov edi, eax
xor eax, eax
cmp dword [ebp - 0x21c], eax
pop ecx
jne 0x4ad03a42
add eax, edi
lea eax, [eax + eax + 8]
push eax
call fcn.4ad01711
mov edi, eax
test edi, edi
je 0x4ad13275
mov esi, 0x4ad03820
push esi
push edi
call dword [fcn.4ad01284]
push ebx
mov ebx, dword [fcn.4ad01284]
push edi
call ebx
push esi
push edi
call ebx
add esp, 0x18
cmp dword [ebp - 0x220], 0
mov esi, 0x4ad0381c
je 0x4ad03a50
push edi
call fcn.4ad0385c
push 1
push esi
push edi
call fcn.4ad017d6
cmp dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], eax
je 0x4ad0a622
push dword [ebp - 0x224]
call dword [fcn.4ad012dc]
pop ecx
mov dword [ebp - 0x22c], eax
cmp byte [0x4ad2fa64], 0
je 0x4ad0a62e
push str.PATHEXT
call fcn.4ad01b70
mov edi, eax
test edi, edi
je 0x4ad0a62e
push edi
call fcn.4ad0385c
push 1
push esi
push edi
call fcn.4ad017d6
mov dword [ebp - 0x230], eax
mov edi, dword [ebp - 0x21c]
test edi, edi
je 0x4ad0a638
push edi
call dword [fcn.4ad012dc]
pop ecx
mov ebx, eax
test edi, edi
je 0x4ad0a63f
push edi
call fcn.4ad01349
test eax, eax
je 0x4ad0366f
push edi
call fcn.4ad01349
push eax
push edi
call dword [fcn.4ad012d8]
pop ecx
pop ecx
push edi
call dword [fcn.4ad012dc]
pop ecx
mov esi, eax
push edi
call fcn.4ad01a79
mov ax, word [eax]
xor edi, edi
cmp ax, word [0x4ad33b8c]
je 0x4ad03690
inc edi
inc ebx
inc esi
mov ecx, dword [ebp - 0x21c]
xor edx, edx
cmp word [ecx], dx
je 0x4ad0a5f0
mov eax, dword [ebp - 0x22c]
lea esi, [esi + eax + 1]
cmp esi, 0x104
mov dword [ebp - 0x238], esi
ja 0x4ad13286
cmp dword [ebp - 0x218], edx
je 0x4ad036e1
push dword [ebp - 0x21c]
push dword [ebp - 0x218]
call dword [fcn.4ad012d8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
xor edx, edx
cmp edi, edx
mov eax, ebx
je 0x4ad1329d
cmp edi, edx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x21c], eax
je 0x4ad03718
cmp dword [ebp - 0x218], edx
je 0x4ad0a646
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x218]
call dword [fcn.4ad01284]
pop ecx
pop ecx
xor edx, edx
cmp dword [ebp - 0x218], edx
je 0x4ad0a646
cmp dword [ebp - 0x224], edx
je 0x4ad03740
push dword [ebp - 0x224]
push dword [ebp - 0x218]
call dword [fcn.4ad01284]
pop ecx
pop ecx
mov esi, dword [ebp - 0x218]
push esi
call fcn.4ad01349
test eax, eax
je 0x4ad03760
push esi
call fcn.4ad01349
push eax
push esi
call dword [fcn.4ad012d8]
pop ecx
pop ecx
push esi
call dword [fcn.4ad012dc]
pop ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x218]
cmp word [eax + 2], 0x3a
jne 0x4ad0378c
movzx eax, word [eax]
push eax
call fcn.4ad02a5b
test eax, eax
je 0x4ad03635
push 0x2e
push dword [ebp - 0x224]
call fcn.4ad01a53
xor ebx, ebx
cmp eax, ebx
je 0x4ad0395b
cmp word [eax + 2], bx
je 0x4ad0395b
push 1
push dword [ebp - 0x218]
call fcn.4ad038ac
test eax, eax
je 0x4ad03b43
push 0x2e
push dword [ebp - 0x218]
call fcn.4ad01a53
mov edi, eax
cmp edi, ebx
je 0x4ad03b4f
mov esi, dword [fcn.4ad012b8]
push str..CMD
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x4ad05ebc
push str..BAT
push edi
call esi
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 8
push 0x2a
push dword [ebp - 0x224]
call fcn.4ad01323
test eax, eax
jne 0x4ad0a606
push 0x3f
push dword [ebp - 0x224]
call fcn.4ad01323
test eax, eax
jne 0x4ad0a606
mov esi, dword [ebp - 0x230]
push ebx
push 0x4ad03a1c
push dword [ebp - 0x228]
push dword [ebp - 0x218]
call fcn.4ad039e6
test eax, eax
jne 0x4ad05ece
mov eax, dword [0x4ad2ba04]
cmp eax, ebx
je 0x4ad039bc
cmp eax, 2
jne 0x4ad03635
push 1
push 0x4ad032c4
push dword [ebp - 0x228]
push dword [ebp - 0x218]
call fcn.4ad039e6
test eax, eax
je 0x4ad03635
jmp 0x4ad132b4
lea edi, [ebp - 0x214]
jmp 0x4ad0345a
push str.PATH
call fcn.4ad01b70
mov dword [ebp - 0x21c], eax
jmp 0x4ad0356a
push dword [ebp - 0x21c]
call esi
pop ecx
jmp 0x4ad03584
push esi
push edi
call ebx
cmp dword [ebp - 0x21c], 0
pop ecx
pop ecx
je 0x4ad035ca
push dword [ebp - 0x21c]
push edi
call ebx
pop ecx
pop ecx
jmp 0x4ad035ca
cmp dword [ebp - 0x220], ebx
jne 0x4ad0a651
mov eax, dword [0x4ad2ba04]
cmp eax, 2
jne 0x4ad132a5
jmp 0x4ad0395b
mov edi, dword [fcn.4ad012b8]
push str..BAT
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad05ebc
push str..CMD
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x4ad05f13
push 2
pop eax
jmp 0x4ad03801
mov ax, word [esi]
inc esi
inc esi
test ax, ax
jne 0x4ad05ec4
cmp word [esi], bx
je 0x4ad039aa
push esi
call dword [fcn.4ad012dc]
add eax, dword [ebp - 0x238]
pop ecx
cmp eax, 0x104
ja 0x4ad05ec4
push 1
push esi
push dword [ebp - 0x228]
push dword [ebp - 0x218]
call fcn.4ad039e6
test eax, eax
jne 0x4ad05e9a
mov eax, dword [0x4ad2ba04]
cmp eax, 2
je 0x4ad05ec4
jmp 0x4ad0a663
xor eax, eax
jmp 0x4ad03800
cmp dword [ebp - 0x220], edx
je 0x4ad0a606
mov eax, dword [0x4ad2ba04]
cmp eax, edx
je 0x4ad0a606
cmp eax, 2
jne 0x4ad0a610
mov dword [0x4ad2ba04], 0x2331
xor eax, eax
jmp 0x4ad03801
mov dword [ebp - 0x220], ebx
jmp 0x4ad03389
and dword [ebp - 0x22c], 0
jmp 0x4ad035ff
mov edi, str..COM_.EXE_.BAT_.CMD_.VBS_.JS_.WS
jmp 0x4ad03620
xor ebx, ebx
jmp 0x4ad0364d
xor esi, esi
jmp 0x4ad03679
mov dword [ebp - 0x228], edx
jmp 0x4ad0376e
cmp dword [0x4ad2ba04], 5
je 0x4ad037c2
jmp 0x4ad03b4f
cmp eax, ebx
je 0x4ad05ec4
jmp 0x4ad039b3
cmp byte [0x4ad2fa64], 0
jne 0x4ad132e1
jmp 0x4ad0a606
mov dword [0x4ad2ba04], 0x233f
jmp 0x4ad0a610
push str.COMSPEC
call fcn.4ad01b70
mov esi, eax
cmp esi, ebx
jne 0x4ad033c4
mov dword [0x4ad2ba04], 0x23d2
jmp 0x4ad0a610
push 0x3a
lea eax, [ebp - 0x214]
push eax
call fcn.4ad01323
mov edi, eax
jmp 0x4ad03458
mov dword [0x4ad2ba04], 8
push 3
jmp 0x4ad05ebe
cmp edi, edx
mov eax, ebx
jne 0x4ad1328f
lea eax, [ebx + 1]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x21c], eax
jmp 0x4ad03635
lea eax, [ebx + 1]
jmp 0x4ad036eb
cmp eax, ebx
jne 0x4ad03635
xor ebx, ebx
jmp 0x4ad0395b
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x218]
call dword [0x4ad010e0]
test eax, eax
je 0x4ad03635
cmp dword [ebp - 0x234], 4
je 0x4ad05f13
jmp 0x4ad03635
push dword [ebp - 0x218]
call dword [0x4ad010e4]
cmp eax, 0xffffffff
je 0x4ad0a606
test al, 0x10
je 0x4ad0a606
push 5
jmp 0x4ad05ebe