Function at 0x478170
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x646d01
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x6bc858]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push esi
mov eax, dword [0x6bc858]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov eax, dword [edi + 0x220]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0x224], 0
jne 0x4783a4
jmp 0x4781d0
mov ecx, dword [edi + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, edi
call fcn.00478870
test eax, eax
je 0x478388
push 0x400
lea edx, [esp + 0x31]
push 0
push edx
mov byte [esp + 0x38], 0
call fcn.005ff630
add esp, 0xc
cmp dword [edi + 0x218], 0x10
jb 0x478216
mov eax, dword [edi + 0x204]
jmp 0x47821c
lea eax, [edi + 0x204]
push eax
push 0x400
lea eax, [esp + 0x34]
push eax
push 0x6745b6
push str.update_url
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x478243
sub eax, edx
jne 0x478274
push 0x68761c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.Update.cpp
mov dword [esp + 0x20], 0x5a
call fcn.0041d7b0
add esp, 4
jmp 0x478388
lea ebx, [edi + 0x19c]
mov esi, ebx
call fcn.004c4b60
push 0x1e
push str.tempupdatewifidayinstall.exe
mov ecx, ebx
call fcn.00412ae0
cmp dword [ebx + 0x18], 0x10
lea esi, [ebx + 4]
jb 0x47829c
mov eax, dword [esi]
jmp 0x47829e
mov eax, esi
test eax, eax
jne 0x4782a9
call fcn.004c35a0
jmp 0x4782b4
push 0
push eax
call fcn.005fc7e0
add esp, 8
test eax, eax
jne 0x4782c7
cmp dword [ebx + 0x18], 0x10
jb 0x4782c0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 0x20
mov esi, esp
mov dword [esp + 0x30], esp
mov dword [esp + 0x2c], esi
mov dword [esi], 0
push 8
mov dword [esp + 0x46c], 0
call fcn.005f0fe0
add esp, 4
test eax, eax
je 0x4783c7
mov dword [esi], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esi]
mov dword [ecx], esi
push 0xffffffffffffffff
mov dword [esp + 0x46c], 1
push edx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edx
push ebx
mov ecx, esi
mov byte [esi + 4], dl
call fcn.004126e0
sub esp, 0x20
mov dword [esp + 0x488], 2
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.00412330
lea ebx, [edi + 4]
mov dword [esp + 0x488], 0xffffffff
call fcn.0045d760
test eax, eax
je 0x478388
mov esi, edi
call fcn.004787c0
mov ecx, dword [0x6c4df0]
push 8
push str.updating
add ecx, 0x6c
call fcn.00412c10
cmp dword [0x6c4df0], 0
je 0x478388
call fcn.00490be0
mov eax, dword [edi + 0x220]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0x224], 0
je 0x4781d0
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0
call fcn.005f41f0
push 0x6a361c
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], vtable.std::bad_alloc.0
call fcn.006009e0
int3