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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x634
mov al, byte [ecx + 0x2b1]
push ebx
push esi
xor ebx, ebx
push edi
cmp al, bl
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x24], 0xffffffff
jne 0x47d865
mov edx, dword [ebp + 8]
cmp edx, ebx
je 0x47d865
mov ecx, dword [0x63e3c8]
xor eax, eax
cmp eax, dword [ecx + 8]
jge 0x47d865
mov edi, dword [ecx + 4]
mov esi, eax
shl esi, 4
mov esi, dword [edi + esi]
cmp dword [esi + 0x390], edx
jne 0x47d9b0
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp eax, ebx
jne 0x47d871
lea eax, [esi + 4]
lea ecx, [ebp - 0x440]
lea edx, [ebp - 0x240]
push ecx
push edx
lea ecx, [ebp - 0x640]
lea edx, [ebp - 0x20]
push ecx
push edx
push eax
call fcn.0054fba9
add esp, 0x14
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x2b1], bl
jne 0x47da09
mov eax, dword [esi]
cmp eax, ebx
jne 0x47d8ab
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47d8d9
mov eax, dword [esi]
cmp eax, ebx
jne 0x47d8c0
lea eax, [esi + 4]
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [0x63e3c8]
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jle 0x47da09
lea edx, [ebp - 0x20]
push edx
call fcn.0054e46e
mov edi, eax
lea eax, [ebp - 0x640]
push eax
call fcn.0054e46e
lea ecx, [ebp - 0x240]
add edi, eax
push ecx
call fcn.0054e46e
lea edx, [ebp - 0x440]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [edi + edi + 0x20]
push eax
call fcn.0056649c
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x47da01
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x440]
push ecx
lea eax, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x640]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x1c
cmp eax, ebx
je 0x47d9b6
push edi
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x47d9b6
mov eax, dword [esi]
cmp eax, edi
ja 0x47d9b6
push eax
call fcn.0054e46e
mov ecx, dword [esi]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x47d9b6
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x3c], bx
call fcn.00402b60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00403580
push eax
mov ecx, esi
call fcn.00402b60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401070
jmp 0x47d9f8
inc eax
jmp 0x47d846
mov ecx, esi
call fcn.00401070
push edi
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x47d9f8
push edi
call fcn.0054e46e
lea eax, [eax + eax + 2]
push eax
call fcn.0056649c
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x47d9f8
push edi
call fcn.0054e46e
mov ecx, dword [esi]
push edi
push ecx
mov dword [esi + 8], eax
call fcn.0054e449
add esp, 0xc
push edi
call fcn.005664c5
add esp, 4
inc dword [ebp - 0x14]
jmp 0x47d8a2
mov eax, dword [esi]
cmp eax, ebx
jne 0x47da12
lea eax, [esi + 4]
lea edx, [ebp + 8]
lea ecx, [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x28]
push ecx
push eax
lea ecx, [edx + 8]
call fcn.00541c80
cmp al, bl
je 0x47db94
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x47db94
cmp dword [ebp - 0x18], ebx
jne 0x47da44
mov dword [ebp - 0x18], eax
cmp byte [ebp + 0x14], bl
jne 0x47db94
lea eax, [ebp - 0x20]
push eax
call fcn.0054e46e
lea ecx, [ebp - 0x640]
mov edi, eax
push ecx
call fcn.0054e46e
lea edx, [ebp - 0x240]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [ebp - 0x440]
push eax
call fcn.0054e46e
add edi, eax
lea ecx, [edi + edi + 0x20]
push ecx
call fcn.0056649c
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x47db71
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x440]
push edx
lea ecx, [ebp - 0x240]
push eax
lea edx, [ebp - 0x640]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x1c
cmp eax, ebx
je 0x47db26
push edi
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x47db26
mov eax, dword [esi]
cmp eax, edi
ja 0x47db26
push eax
call fcn.0054e46e
mov ecx, dword [esi]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x47db26
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00402b60
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x47db11
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00402b60
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.00401070
jmp 0x47db68
mov ecx, esi
call fcn.00401070
push edi
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x47db68
push edi
call fcn.0054e46e
lea eax, [eax + eax + 2]
push eax
call fcn.0056649c
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x47db68
push edi
call fcn.0054e46e
mov ecx, dword [esi]
push edi
push ecx
mov dword [esi + 8], eax
call fcn.0054e449
add esp, 0xc
push edi
call fcn.005664c5
add esp, 4
inc dword [ebp - 0x14]
jmp 0x47d893
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10