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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x416]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x418], ax
call fcn.00422210
add esp, 0xc
push 0x206
lea eax, [ebp - 0x20e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x210], dx
call fcn.00422210
add esp, 0xc
push 0x206
lea edx, [ebp - 0xa2e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0xa30], cx
call fcn.00422210
mov eax, dword [0xab3bdb]
mov ecx, dword [0x43f983]
mov edx, dword [0xac03f3]
add esp, 0xc
mov dword [0xb58f34], eax
mov eax, dword [0xb3d40b]
push 0x206
mov dword [0xb58f3c], eax
mov dword [0xb58f30], ecx
mov ecx, dword [0xb3fc23]
mov dword [0xb58f38], edx
lea eax, [ebp - 0x826]
xor edx, edx
push ebx
push eax
mov dword [0xb58f40], ecx
mov dword [0xb57cdc], ebx
mov dword [0xb568b4], ebx
mov dword [0xb568b8], ebx
mov word [ebp - 0x828], dx
call fcn.00422210
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xb59db0
push 0xb5a1c0
lea ecx, [ebp - 0x210]
push str._s_s.dat
push ecx
call edi
push 0xb5a1c0
lea edx, [ebp - 0x828]
push str._sClient.cab
push edx
call edi
add esp, 0x1c
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0041ad6e
add esp, 8
test eax, eax
mov eax, dword [0xb58f34]
je 0x40d826
cmp eax, ebx
jne 0x40d828
cmp dword [0xb58f30], ebx
jbe 0x40d8a2
push 5
push str.setup
push 0xb59db0
mov dword [ebp - 0xa34], ebx
call fcn.0041c79c
add esp, 0xc
test eax, eax
je 0x40d797
push 0x436fd4
jmp 0x40d9ce
push 0x206
lea edx, [ebp - 0x61e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x620], cx
call fcn.00422210
add esp, 0xc
push str.C:UsersPublicSMR7WM7installTemp
lea eax, [ebp - 0x620]
push str._sVersion.dat
push eax
call edi
add esp, 0xc
push str.uP_n_q_
mov dword [0xb57cd8], 1
call fcn.00403790
add esp, 4
push 0x6acfc0
mov edx, str.S.O.C.._Bg
mov ecx, str.C:UsersPublicSMR7WM7ClientPackage.cab
call fcn.00408d10
add esp, 4
call fcn.0040d090
lea ecx, [ebp - 0x620]
push ecx
push 0xc
push 0xb54bd0
push 0x4301b4
push str.Version
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40d90e
cmp eax, ebx
jbe 0x40d8a2
cmp dword [0xb58f30], ebx
jbe 0x40d8a2
lea edx, [ebp - 0x418]
push str.C:UsersPublicSMR7ManualUpdate.ini
push edx
mov dword [ebp - 0xa34], 2
call edi
push 0xc800
mov edx, str.A.K.S..
lea ecx, [ebp - 0x418]
call fcn.00408d10
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebp - 0x418]
call fcn.0040d280
test al, al
jne 0x40d886
push 0x4370ac
jmp 0x40d9ce
push 0x4370e4
call fcn.00403790
add esp, 4
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d90e
lea ecx, [ebp - 0x210]
push ebx
push ecx
call fcn.0041ad6e
add esp, 8
test eax, eax
jne 0x40d9c9
lea edx, [ebp - 0x828]
push ebx
push edx
call fcn.0041ad6e
add esp, 8
test eax, eax
jne 0x40d9c9
cmp dword [0xb58f34], ebx
jne 0x40d9c9
lea esi, [ebp - 0x210]
mov dword [ebp - 0xa34], 1
call fcn.0040d280
test al, al
jne 0x40d901
push 0x437114
jmp 0x40d9ce
push str.uP_n_tg_
call fcn.00403790
add esp, 4
mov eax, 0xb56090
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d916
mov ecx, dword [0xb568ac]
sub eax, edx
mov edx, dword [0xb568b8]
sar eax, 1
push eax
mov eax, dword [0xb568b0]
push 0xb55e38
push 0xb55e18
push eax
mov eax, dword [0xb568b4]
push ecx
mov ecx, dword [0xb568a8]
push edx
mov edx, dword [0xb568a4]
push eax
mov eax, dword [0x43f6b4]
push ecx
mov ecx, dword [0xb568a0]
push edx
mov edx, dword [0xb5689c]
push eax
mov eax, dword [0xb56898]
push ecx
mov ecx, dword [0xb56894]
push edx
mov edx, dword [0xb56890]
push eax
mov eax, dword [0x43f3c4]
push ecx
push edx
push eax
push 0xb54bd0
push 0xb555f8
push 0xb54bf0
push str.zfga_R
push 0xb5b3f8
call edi
add esp, 0x54
push 0xb5b3f8
call fcn.00403790
mov ax, word [ebp - 0xa34]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push 0x437178
call fcn.00403790
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 9
pop ebx
call fcn.0041a70e
mov esp, ebp
pop ebp
ret