Function at 0x478870
Capabilities:
Hash data with md5
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f982
mov eax, dword fs:[0]
push eax
sub esp, 0x734
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov esi, edi
mov dword [ebp - 0x734], edi
mov dword [ebp - 0x730], ebx
call fcn.00478f90
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.005ff630
add esp, 0xc
cmp dword [edi + 0x218], 0x10
jb 0x4788e1
mov eax, dword [edi + 0x204]
jmp 0x4788e7
lea eax, [edi + 0x204]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x200
lea ecx, [ebp - 0x210]
push ecx
push 0x6745b6
push str.host_md5
push str.update
call esi
cmp dword [edi + 0x1b4], 0x10
mov byte [ebp - 0x678], bl
mov dword [ebp - 0x6cc], ebx
mov dword [ebp - 0x6d0], ebx
mov dword [ebp - 0x6e0], 0x67452301
mov dword [ebp - 0x6dc], 0xefcdab89
mov dword [ebp - 0x6d8], 0x98badcfe
mov dword [ebp - 0x6d4], 0x10325476
jb 0x478956
mov edi, dword [edi + 0x1a0]
jmp 0x47895c
add edi, 0x1a0
push edi
lea ecx, [ebp - 0x6e0]
call fcn.004cd3e0
lea edi, [ebp - 0x670]
lea eax, [ebp - 0x6e0]
call fcn.004ce010
push 0x1ff
lea edx, [ebp - 0x40f]
push ebx
mov dword [ebp - 4], ebx
push edx
mov byte [ebp - 0x410], bl
call fcn.005ff630
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x60f]
push ebx
push eax
mov byte [ebp - 0x610], bl
call fcn.005ff630
mov edi, dword [ebp - 0x734]
add esp, 0xc
cmp dword [edi + 0x218], 0x10
jb 0x4789c9
mov eax, dword [edi + 0x204]
jmp 0x4789cf
lea eax, [edi + 0x204]
push eax
push 0x200
lea ecx, [ebp - 0x410]
push ecx
push 0x6745b6
push str.now_version
push str.update
call esi
cmp dword [edi + 0x218], 0x10
jb 0x4789fe
mov eax, dword [edi + 0x204]
jmp 0x478a04
lea eax, [edi + 0x204]
push eax
push 0x200
lea edx, [ebp - 0x610]
push edx
push 0x6745b6
push str.last_version
push str.update
call esi
mov dword [ebp - 0x630], ebx
push 8
mov byte [ebp - 4], 1
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x478f50
mov dword [ebp - 0x630], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x630]
lea eax, [ebp - 0x630]
mov dword [ecx], eax
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push ebx
lea edx, [ebp - 0x670]
mov esi, 0xf
push edx
mov ecx, eax
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x61c], ebx
mov byte [ebp - 0x62c], bl
call fcn.004126e0
lea edi, [ebp - 0x630]
mov byte [ebp - 4], 3
call fcn.004d1540
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x670]
call fcn.004126e0
cmp dword [ebp - 0x618], 0x10
jb 0x478abd
mov eax, dword [ebp - 0x62c]
push eax
call fcn.005f0cb0
add esp, 4
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x61c], ebx
mov byte [ebp - 0x62c], bl
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 4
call fcn.0040ed70
mov ecx, dword [ebp - 0x630]
push ecx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x630], ebx
mov byte [ebp - 4], bl
call fcn.0040ed70
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x630]
call fcn.00412330
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004d1540
mov edi, eax
mov dword [ebp - 0x650], ebx
push 8
mov byte [ebp - 4], 6
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x478f1d
mov dword [ebp - 0x650], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x650]
mov dword [ecx], eax
push 0xffffffffffffffff
mov byte [ebp - 4], 7
push ebx
push edi
mov ecx, eax
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x63c], ebx
mov byte [ebp - 0x64c], bl
call fcn.004126e0
mov edi, 0x10
cmp dword [ebp - 0x618], edi
jb 0x478b96
mov edx, dword [ebp - 0x62c]
push edx
call fcn.005f0cb0
add esp, 4
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x61c], ebx
mov byte [ebp - 0x62c], bl
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 0xa
call fcn.0040ed70
mov eax, dword [ebp - 0x630]
push eax
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x630], ebx
mov byte [ebp - 4], 9
call fcn.0040ed70
mov esi, dword [ebp - 0x734]
cmp dword [esi + 0x218], edi
jb 0x478bf1
mov eax, dword [esi + 0x204]
jmp 0x478bf7
lea eax, [esi + 0x204]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebx
push str.download_finish
push str.update
call edi
cmp eax, 1
jne 0x478ce6
cmp dword [esi + 0x218], 0x10
jb 0x478c25
mov eax, dword [esi + 0x204]
jmp 0x478c2b
lea eax, [esi + 0x204]
push eax
push ebx
push str.install_finish
push str.update
call edi
test eax, eax
jne 0x478ce6
cmp dword [ebp - 0x638], 0x10
mov eax, dword [ebp - 0x64c]
jae 0x478c56
lea eax, [ebp - 0x64c]
mov edi, dword [ebp - 0x63c]
push eax
mov eax, dword [ebp - 0x65c]
lea ebx, [ebp - 0x670]
call fcn.004127d0
test eax, eax
jne 0x478ce4
lea ecx, [ebp - 0x610]
push ecx
lea ecx, [ebp - 0x720]
call fcn.00412330
mov edi, eax
lea edx, [ebp - 0x410]
mov byte [ebp - 4], 0xb
push edx
lea ecx, [ebp - 0x700]
mov dword [ebp - 0x730], 1
call fcn.00412330
mov ebx, eax
mov dword [ebp - 4], 0xc
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x730], 3
jb 0x478cc7
mov edi, dword [edi + 4]
jmp 0x478cca
add edi, 4
push edi
mov edi, eax
mov eax, dword [ebx + 0x14]
call fcn.004127d0
test eax, eax
jne 0x478ce4
mov byte [ebp - 0x721], 1
xor ebx, ebx
jmp 0x478cec
xor ebx, ebx
mov byte [ebp - 0x721], bl
mov dword [ebp - 4], 0xb
test byte [ebp - 0x730], 2
je 0x478d0e
and dword [ebp - 0x730], 0xfffffffd
lea ecx, [ebp - 0x700]
call fcn.00412410
mov dword [ebp - 4], 9
test byte [ebp - 0x730], 1
je 0x478d29
lea ecx, [ebp - 0x720]
call fcn.00412410
cmp byte [ebp - 0x721], bl
je 0x478e0d
mov eax, dword [ebp - 0x66c]
mov edi, 0x10
cmp dword [ebp - 0x658], edi
jae 0x478d4e
lea eax, [ebp - 0x66c]
push eax
mov esi, str.Update.cpp
push str.CUpdate::_CheckUpdate___LocalMd5:__s__r_n
lea eax, [ebp - 0x72c]
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x728], 0xcf
call fcn.0041d7b0
mov eax, dword [ebp - 0x64c]
add esp, 8
cmp dword [ebp - 0x638], edi
jae 0x478d8b
lea eax, [ebp - 0x64c]
push eax
push str.CUpdate::_CheckUpdate___HostMd5_:__s__r_n
lea eax, [ebp - 0x72c]
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x728], 0xd0
call fcn.0041d7b0
push str.CUpdate::_CheckUpdate___return_FALSE_r_n
lea eax, [ebp - 0x72c]
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x728], 0xd1
call fcn.0041d7b0
add esp, 0xc
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], bl
call fcn.00412410
lea ecx, [ebp - 0x670]
mov dword [ebp - 4], 0xffffffff
call fcn.00412410
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x218], 0x10
lea edi, [esi + 0x204]
jb 0x478e20
mov eax, dword [edi]
jmp 0x478e22
mov eax, edi
push eax
push 0x686e68
push str.download_finish
push str.update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0x218], 0x10
jb 0x478e43
mov edi, dword [edi]
push edi
push 0x686e68
push str.install_finish
push str.update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x66c]
mov edi, 0x10
cmp dword [ebp - 0x658], edi
jae 0x478e72
lea eax, [ebp - 0x66c]
push eax
mov esi, str.Update.cpp
push str.CUpdate::_CheckUpdate___LocalMd5:__s__r_n
lea eax, [ebp - 0x72c]
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x728], 0xd8
call fcn.0041d7b0
mov eax, dword [ebp - 0x64c]
add esp, 8
cmp dword [ebp - 0x638], edi
jae 0x478eaf
lea eax, [ebp - 0x64c]
push eax
push str.CUpdate::_CheckUpdate___HostMd5_:__s__r_n
lea eax, [ebp - 0x72c]
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x728], 0xd9
call fcn.0041d7b0
push str.CUpdate::_CheckUpdate___return_TRUE_r_n
lea eax, [ebp - 0x72c]
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x728], 0xda
call fcn.0041d7b0
add esp, 0xc
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], bl
call fcn.00412410
lea ecx, [ebp - 0x670]
mov dword [ebp - 4], 0xffffffff
call fcn.00412410
mov eax, 1
jmp 0x478df1
lea eax, [ebp - 0x728]
push eax
lea ecx, [ebp - 0x740]
mov dword [ebp - 0x728], ebx
call fcn.005f41f0
push 0x6a361c
lea ecx, [ebp - 0x740]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
lea edx, [ebp - 0x728]
push edx
lea ecx, [ebp - 0x740]
mov dword [ebp - 0x728], ebx
call fcn.005f41f0
push 0x6a361c
lea eax, [ebp - 0x740]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
int3