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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x300], ecx
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x2ec], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422ab4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00427758
mov esi, eax
test esi, esi
je 0x4220e9
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x44]
call fcn.0040685c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
jmp 0x4220ee
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x104
jl 0x422112
mov eax, dword [0x432d3c]
mov dword [eax], 0x233f
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x422a96
mov eax, dword [0x432b04]
cmp byte [eax], 0
je 0x42213d
mov edx, 0x422ac8
mov ecx, 4
mov eax, esi
call fcn.00413454
test eax, eax
jne 0x42213d
mov eax, 0x422ad4
call fcn.0041e0ac
mov esi, eax
lea eax, [ebp - 0x2e2]
mov ecx, 0x104
xor edx, edx
call fcn.00417af8
lea eax, [ebp - 0x2e2]
mov edx, esi
call fcn.004179e4
lea eax, [ebp - 0x2e2]
mov dx, 0x2f
call fcn.004208d8
mov word [ebp - 0x1a], 0x5c
mov word [ebp - 0x18], 0x3a
mov word [ebp - 0x16], 0
lea edx, [ebp - 0x1a]
lea eax, [ebp - 0x2e2]
call fcn.00417a0c
cmp eax, dword [ebp - 0x24]
setl byte [ebp - 0x2d]
mov word [ebp - 0x18], 0
cmp byte [ebp - 0x2d], 0
je 0x4221f3
lea eax, [ebp - 0x2e2]
mov dx, 0x5c
call fcn.0041798c
mov esi, eax
test esi, esi
jne 0x4221ee
xor eax, eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x2e2]
test eax, eax
je 0x4221eb
lea eax, [ebp - 0x2e2]
mov dword [ebp - 0x50], eax
jmp 0x4221e2
mov eax, dword [ebp - 0x50]
cmp word [eax], 0x3a
jne 0x4221de
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
jmp 0x4221eb
add dword [ebp - 0x50], 2
mov eax, dword [ebp - 0x50]
cmp word [eax], 0
jne 0x4221cd
mov esi, dword [ebp - 0x4c]
add esi, 2
jmp 0x4221f9
lea esi, [ebp - 0x2e2]
test esi, esi
je 0x42221d
mov edx, 0x422ae4
mov eax, esi
call fcn.00413380
test eax, eax
je 0x42221d
mov edx, 0x422ae8
mov eax, esi
call fcn.00413380
test eax, eax
jne 0x42225d
mov eax, dword [0x432b04]
cmp byte [eax], 0
je 0x422248
push edi
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x422248
test byte [ebp - 0x3c], 0x10
je 0x422248
mov dword [ebp - 8], 5
jmp 0x422a96
mov eax, dword [0x432d3c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x422a96
mov eax, 0x410
call fcn.00418160
mov ebx, eax
test ebx, ebx
jne 0x422284
mov eax, dword [0x432d3c]
mov dword [eax], 8
mov dword [ebp - 8], 3
jmp 0x422a96
lea edx, [ebp - 0x2e2]
mov eax, edi
call fcn.004179e4
lea eax, [ebp - 0x2e2]
test eax, eax
je 0x4222b7
lea eax, [ebp - 0x2e2]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
call fcn.0040685c
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
jmp 0x4222bc
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x60]
call fcn.0040685c
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
cdq
push edx
push eax
mov eax, dword [ebp - 0x64]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov word [edi + eax*2], 0
mov edx, 0x422ae4
mov eax, edi
call fcn.004179f8
mov ecx, 0x208
mov edx, edi
mov eax, ebx
call fcn.0041fc10
test eax, eax
je 0x422342
mov eax, dword [0x432b04]
cmp byte [eax], 0
je 0x42232d
push edi
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x42232d
test byte [ebp - 0x3c], 0x10
je 0x42232d
mov dword [ebp - 8], 5
jmp 0x422a96
mov eax, dword [0x432d3c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x422a96
mov eax, ebx
call fcn.00417b08
cmp word [eax], 0x5c
je 0x42235b
mov edx, 0x422af0
mov eax, ebx
call fcn.004179f8
mov edx, esi
mov eax, ebx
call fcn.004179f8
test ebx, ebx
je 0x42237e
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x6c]
call fcn.0040685c
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
jmp 0x422383
xor eax, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
inc eax
mov edx, eax
add edx, edx
mov eax, ebx
call fcn.0041820c
mov ebx, eax
mov dx, 0x5c
mov eax, ebx
call fcn.0041798c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov word [eax], 0
add dword [ebp - 0x10], 2
movzx eax, byte [ebp - 0x2d]
xor al, 1
test al, al
je 0x4223c5
mov eax, 0x422af4
call fcn.0041e0ac
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x4223df
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x78]
call fcn.0040685c
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
jmp 0x4223e4
xor eax, eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x14], 0
je 0x42240f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
call fcn.0040685c
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x80], eax
jmp 0x422414
xor eax, eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x74]
add eax, 2
add eax, dword [ebp - 0x80]
add eax, 2
add eax, eax
call fcn.00418160
mov esi, eax
test esi, esi
jne 0x422444
mov eax, dword [0x432d3c]
mov dword [eax], 8
mov dword [ebp - 8], 3
jmp 0x422a96
mov edx, 0x422b00
mov eax, esi
call fcn.004179f8
mov edx, ebx
mov eax, esi
call fcn.004179f8
mov edx, 0x422b00
mov eax, esi
call fcn.004179f8
movzx eax, byte [ebp - 0x2d]
xor al, 1
test al, al
je 0x422485
mov edx, 0x422b04
mov eax, esi
call fcn.004179f8
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004179f8
mov eax, esi
call fcn.00423010
mov edx, 0x422b04
mov ecx, 1
mov eax, esi
call fcn.00420b6c
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x4224cd
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
call fcn.0040685c
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
jmp 0x4224d5
xor eax, eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x432b04]
cmp byte [eax], 0
je 0x4224f8
mov eax, 0x422b08
call fcn.0041e0ac
mov dword [ebp - 0xc], eax
jmp 0x422500
mov eax, 0x422b18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00423010
mov edx, 0x422b04
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.00420b6c
mov dword [ebp - 0xc], eax
test esi, esi
je 0x422546
mov dword [ebp - 0x9c], esi
mov eax, dword [ebp - 0x9c]
call fcn.0040685c
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
jmp 0x42254e
xor eax, eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x28], eax
mov eax, esi
call fcn.00427758
mov edx, eax
mov eax, esi
call fcn.004179e4
test esi, esi
je 0x422590
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xa8]
call fcn.0040685c
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xa4], eax
jmp 0x422598
xor eax, eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.00417b08
cmp word [eax], 0x5c
je 0x4225ba
mov byte [ebp - 0x2e], 1
inc dword [ebp - 0x28]
inc dword [ebp - 0x38]
jmp 0x4225be
mov byte [ebp - 0x2e], 0
cmp word [esi], 0
je 0x42260a
mov eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x24]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x4225e7
cmp eax, 0x104
jbe 0x42260a
jmp 0x4225e9
jle 0x42260a
cmp byte [ebp - 0x2e], 0
je 0x4225fb
mov eax, dword [ebp - 0x28]
add eax, eax
add esi, eax
jmp 0x42251d
mov eax, dword [ebp - 0x28]
add eax, eax
add esi, eax
add esi, 2
jmp 0x42251d
cmp word [esi], 0
jne 0x42264c
cmp byte [ebp - 0x2d], 0
je 0x422637
mov eax, dword [0x432d3c]
cmp dword [eax], 0
je 0x42262a
mov eax, dword [0x432d3c]
cmp dword [eax], 2
jne 0x422642
mov eax, dword [0x432d3c]
mov dword [eax], 0x2331
jmp 0x422642
mov eax, dword [0x432d3c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x422a96
mov edx, esi
mov eax, edi
call fcn.004179e4
cmp byte [ebp - 0x2e], 0
je 0x422664
mov eax, dword [ebp - 0x28]
add eax, eax
add esi, eax
jmp 0x42266e
mov eax, dword [ebp - 0x28]
add eax, eax
add esi, eax
add esi, 2
cmp byte [ebp - 0x2e], 0
je 0x42267e
lea edx, [ebp - 0x1a]
mov eax, edi
call fcn.004179f8
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004179f8
mov eax, edi
call fcn.00427758
mov edx, eax
mov eax, edi
call fcn.004179e4
test edi, edi
je 0x4226c1
mov dword [ebp - 0xb4], edi
mov eax, dword [ebp - 0xb4]
call fcn.0040685c
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
jmp 0x4226c9
xor eax, eax
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c], eax
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x4226eb
movzx eax, word [edi]
call fcn.00427654
test al, al
je 0x42251d
mov dx, 0x2e
mov eax, dword [ebp - 0x10]
call fcn.0041798c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4227fc
mov eax, dword [ebp - 0x34]
cmp word [eax + 2], 0
je 0x4227fc
mov dl, 1
mov eax, edi
call fcn.004207dc
test al, al
jne 0x422737
cmp byte [ebp - 0x2d], 0
je 0x4227e4
mov eax, dword [0x432d3c]
cmp dword [eax], 5
jne 0x4227e4
lea eax, [ebp - 0x2ec]
call fcn.004178a0
mov eax, dword [ebp - 0x2ec]
lea edx, [ebp - 0x2e8]
call fcn.004131ac
mov eax, dword [ebp - 0x2e8]
call fcn.00406b14
push eax
lea eax, [ebp - 0x2f4]
mov edx, edi
call fcn.00406b6c
mov eax, dword [ebp - 0x2f4]
lea edx, [ebp - 0x2f0]
call fcn.004131ac
mov eax, dword [ebp - 0x2f0]
call fcn.00406b14
pop edx
call fcn.004133ac
test eax, eax
jne 0x42279e
mov dword [ebp - 8], 2
jmp 0x422a96
mov edx, 0x422b40
mov eax, dword [ebp - 0x34]
call fcn.004133ac
test eax, eax
jne 0x4227bb
mov dword [ebp - 8], 2
jmp 0x422a96
mov edx, 0x422b4c
mov eax, dword [ebp - 0x34]
call fcn.004133ac
test eax, eax
jne 0x4227d8
mov dword [ebp - 8], 2
jmp 0x422a96
mov dword [ebp - 8], 1
jmp 0x422a96
mov eax, dword [0x432d3c]
cmp dword [eax], 2
je 0x4227fc
mov eax, dword [0x432d3c]
cmp dword [eax], 0
jne 0x42251d
xor eax, eax
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0x10], 0
je 0x422842
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc0], eax
jmp 0x422836
mov eax, dword [ebp - 0xc0]
cmp word [eax], 0x2a
jne 0x42282f
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], eax
jmp 0x422842
add dword [ebp - 0xc0], 2
mov eax, dword [ebp - 0xc0]
cmp word [eax], 0
jne 0x422815
cmp dword [ebp - 0xbc], 0
je 0x422854
mov byte [ebp - 0xc9], 1
jmp 0x4228a8
xor eax, eax
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0x10], 0
je 0x42289a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc8], eax
jmp 0x42288e
mov eax, dword [ebp - 0xc8]
cmp word [eax], 0x3f
jne 0x422887
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], eax
jmp 0x42289a
add dword [ebp - 0xc8], 2
mov eax, dword [ebp - 0xc8]
cmp word [eax], 0
jne 0x42286d
cmp dword [ebp - 0xc4], 0
setne byte [ebp - 0xc9]
cmp byte [ebp - 0xc9], 0
je 0x4228c6
mov eax, dword [0x432d3c]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x422a96
mov ebx, dword [ebp - 0xc]
push 0
mov ecx, 0x422b58
mov edx, dword [ebp - 0x2c]
mov eax, edi
call fcn.00422b60
test eax, eax
je 0x422a39
jmp 0x422a2f
test ebx, ebx
je 0x422910
mov dword [ebp - 0xd4], ebx
mov eax, dword [ebp - 0xd4]
call fcn.0040685c
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xd0], eax
jmp 0x422918
xor eax, eax
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x24]
cdq
push edx
push eax
mov eax, dword [ebp - 0x38]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0xd0]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x422952
cmp eax, 0x104
ja 0x422a26
jmp 0x422958
jg 0x422a26
push 1
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
mov eax, edi
call fcn.00422b60
test eax, eax
je 0x422a0d
mov edx, 0x422b4c
mov eax, ebx
call fcn.004133ac
test eax, eax
je 0x42298e
mov edx, 0x422b40
mov eax, ebx
call fcn.004133ac
test eax, eax
jne 0x42299a
mov dword [ebp - 8], 2
jmp 0x422a96
lea eax, [ebp - 0x2fc]
call fcn.004178a0
mov eax, dword [ebp - 0x2fc]
lea edx, [ebp - 0x2f8]
call fcn.004131ac
mov eax, dword [ebp - 0x2f8]
call fcn.00406b14
push eax
lea eax, [ebp - 0x304]
mov edx, edi
call fcn.00406b6c
mov eax, dword [ebp - 0x304]
lea edx, [ebp - 0x300]
call fcn.004131ac
mov eax, dword [ebp - 0x300]
call fcn.00406b14
pop edx
call fcn.004133ac
test eax, eax
jne 0x422a01
mov dword [ebp - 8], 2
jmp 0x422a96
mov dword [ebp - 8], 1
jmp 0x422a96
mov eax, dword [0x432d3c]
cmp dword [eax], 2
je 0x422a26
mov eax, dword [0x432d3c]
cmp dword [eax], 0
jne 0x422a39
jmp 0x422a26
add ebx, 2
cmp word [ebx], 0
jne 0x422a23
add ebx, 2
cmp word [ebx], 0
jne 0x4228e7
mov eax, dword [0x432d3c]
cmp dword [eax], 0
je 0x422a51
mov eax, dword [0x432d3c]
cmp dword [eax], 2
jne 0x42251d
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, edi
call fcn.00422b60
test eax, eax
je 0x42251d
lea eax, [ebp - 0x20]
push eax
push edi
call sub.kernel32.dll_GetBinaryTypeW
test eax, eax
je 0x42251d
cmp dword [ebp - 0x20], 4
jne 0x42251d
mov dword [ebp - 8], 1
jmp 0x422a96
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422abb
lea eax, [ebp - 0x304]
mov edx, 8
call fcn.00406474
ret