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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551749
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], 0x561b5c
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0x11
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0xa
mov byte [ebp - 4], 1
xor edi, edi
cmp edi, dword [ebx + 0xb0]
jge 0x46e5f6
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0xf0], 0x5602e8
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0xf0]
push esi
push eax
push edi
lea ecx, [ebx + 8]
mov byte [ebp - 4], 2
call fcn.00510d00
test al, al
je 0x46e5e1
cmp byte [ebp - 0xb2], 4
jne 0x46e5e1
mov eax, dword [ebp - 0x8c]
cmp dword [eax - 8], esi
jle 0x46e5e1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46e5e1
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx - 8]
cmp eax, 5
lea eax, [ebp - 0x70]
jg 0x46e5c8
lea eax, [ebp - 0xa0]
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.00473520
lea edx, [ebp - 0x8c]
mov ecx, eax
push edx
call fcn.00537c3d
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 1
call fcn.0043c730
inc edi
jmp 0x46e515
xor edi, edi
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x18], edi
cmp edi, eax
jge 0x46e8fb
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0xf0], 0x5602e8
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0xf0]
push esi
push eax
push edi
lea ecx, [ebx + 8]
mov byte [ebp - 4], 3
call fcn.00510d00
test al, al
je 0x46e8e6
mov al, byte [ebp - 0xa5]
test al, al
je 0x46e8e6
cmp byte [ebp - 0xb2], 4
jne 0x46e8e6
mov eax, dword [ebp - 0x8c]
cmp dword [eax - 8], esi
jle 0x46e8e6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46e8e6
lea ecx, [ebp - 0x220]
call fcn.0044c590
mov ecx, dword [ebp - 0x70]
xor edi, edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esi
mov eax, dword [ecx - 8]
cmp eax, 5
lea eax, [ebp - 0x70]
jg 0x46e6e2
lea eax, [ebp - 0xa0]
mov eax, dword [eax]
mov edx, dword [ebp - 0x8c]
push esi
push eax
push edx
lea ecx, [ebp - 0x220]
call fcn.0044fd60
mov dword [ebp - 0x1c], eax
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x24], ebx
je 0x46e820
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
inc edi
xor dl, dl
mov dword [ebp - 0x48], edi
xor eax, eax
cmp eax, esi
jge 0x46e722
cmp dword [ecx + eax*4], edi
je 0x46e726
inc eax
jmp 0x46e716
test dl, dl
je 0x46e737
mov eax, dword [ebp - 0x14]
xor esi, esi
inc eax
mov dword [ebx + 0x10], esi
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x46e6fd
test byte [ebx + 8], 8
je 0x46e752
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], 3
mov ebx, dword [ebx + 0x1c]
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
jmp 0x46e6fd
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
mov edi, dword [ecx + 4]
push edi
call fcn.005309cb
xor edx, edx
div dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x46e7f3
mov esi, dword [eax + edx*4]
test esi, esi
je 0x46e7f3
mov eax, dword [esi + 8]
push edi
push eax
call fcn.0051c942
add esp, 8
test eax, eax
je 0x46e791
mov esi, dword [esi]
jmp 0x46e778
test esi, esi
je 0x46e7f3
add esi, 0xc
lea ecx, [ebp - 0x20]
push esi
call fcn.00537c3d
mov edi, dword [ebp - 0x20]
test edi, edi
mov esi, edi
je 0x46e7f3
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc ecx
mov dword [ebx + 0x10], 1
mov dword [ebp - 0x14], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea edx, [ebx + 1]
push edx
call fcn.005380a1
mov edx, dword [ebp - 0x24]
mov ecx, ebx
mov edi, eax
add esp, 4
mov dword [edx + 4], eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 4]
mov byte [ecx + ebx], 0
mov ebx, edx
jmp 0x46e807
test byte [ebx + 8], 4
jne 0x46e800
mov dword [ebx + 0x10], 2
mov dword [ebx + 4], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00537b04
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebx + 0x1c]
xor esi, esi
jmp 0x46e6fd
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x8c]
push edx
push eax
lea ecx, [ebp - 0x220]
call fcn.00450420
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x46e853
push eax
mov byte [ebp - 4], 6
call fcn.005380ca
add esp, 4
mov dword [ebp - 4], 4
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, esi
jle 0x46e8a4
lea ecx, [eax*4]
mov dword [ebp - 0x4c], eax
push ecx
call fcn.005380a1
mov edx, dword [ebp - 0x1c]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], eax
xor esi, esi
test edx, edx
je 0x46e8aa
mov eax, dword [edx + 0x10]
inc ecx
test eax, eax
je 0x46e88d
cmp eax, 3
je 0x46e88d
cmp eax, 1
jne 0x46e899
cmp esi, dword [ebp - 0x4c]
jge 0x46e898
mov eax, dword [ebp - 0x50]
mov dword [eax + esi*4], ecx
inc esi
mov edx, dword [edx + 0x1c]
jmp 0x46e877
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xf0]
push ecx
push edx
lea ecx, [eax + 8]
call fcn.00511ee0
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0044f8b0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0044c930
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x18]
xor esi, esi
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 1
call fcn.0043c730
inc edi
jmp 0x46e5f8
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x46e932
xor edi, edi
cmp edi, dword [ebp - 0x38]
jae 0x46e932
mov esi, dword [eax + edi*4]
test esi, esi
je 0x46e92a
lea edx, [esi + 0xc]
push 1
push edx
call fcn.005309a7
lea eax, [esi + 8]
push 1
push eax
call fcn.005309a7
mov esi, dword [esi]
jmp 0x46e90c
mov eax, dword [ebp - 0x3c]
inc edi
xor esi, esi
jmp 0x46e904
push eax
call fcn.005380ca
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.00532a33
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x40], 0x561b5c
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 8
cmp eax, esi
je 0x46e991
xor edi, edi
cmp edi, dword [ebp - 0x38]
jae 0x46e991
mov esi, dword [eax + edi*4]
test esi, esi
je 0x46e989
lea ecx, [esi + 0xc]
push 1
push ecx
call fcn.005309a7
lea edx, [esi + 8]
push 1
push edx
call fcn.005309a7
mov esi, dword [esi]
jmp 0x46e96b
mov eax, dword [ebp - 0x3c]
inc edi
xor esi, esi
jmp 0x46e963
push eax
call fcn.005380ca
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.00532a33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret