Function at 0x476390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4818
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x53d9f8]
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 ebx, ecx
call fcn.00410410
lea edx, [ebx + 0x78]
push edx
push eax
mov esi, dword [eax]
call dword [esi + 0xc4]
call fcn.00410410
lea ecx, [ebx + 0x90]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x54]
push 0
push 0
push 0
lea eax, [ebx + 0xa8]
push eax
push str._belongdir_wpsupdate.exe
push 0x503d70
call fcn.0047e2a0
add esp, 0x18
call fcn.00410410
lea ecx, [ebx + 0xc0]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x90]
call fcn.00410410
lea ecx, [ebx + 0xd8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x94]
lea eax, [ebp - 0x58]
push 0x1b
push eax
call fcn.00416f00
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x476449
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, edx
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476466
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004033b0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4764bf
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4764b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4764b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
push 0xa000
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004bee3b
add esp, 4
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov esi, eax
cmovae ecx, dword [ebp - 0x40]
push ecx
push 0x5000
push esi
push 0x4f0da4
push str.BuildId
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476522
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004033b0
push esi
call fcn.004bee44
lea esi, [ebx + 0xf0]
add esp, 4
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x47657d
mov ecx, esi
call fcn.00402d80
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
jmp 0x4765b7
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4765b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4765ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476732
push edx
push ecx
call fcn.004bee2d
add esp, 8
call fcn.00410410
lea ecx, [ebx + 0x108]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xd0]
lea eax, [ebp - 0x28]
push eax
call fcn.00410410
mov ecx, eax
call fcn.00446bf0
mov esi, eax
lea edi, [ebx + 0x120]
cmp edi, esi
je 0x476624
mov ecx, edi
call fcn.00402d80
mov ecx, dword [esi]
mov dword [edi], ecx
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x476660
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476656
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x476656
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.00410410
mov ecx, eax
call fcn.00444040
mov esi, eax
lea edi, [ebx + 0x138]
cmp edi, esi
je 0x4766b8
mov ecx, edi
call fcn.00402d80
mov ecx, dword [esi]
mov dword [edi], ecx
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4766f4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4766ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4766ea
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
call fcn.00410410
lea ecx, [ebx + 0x150]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x476742
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476738
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x476738
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
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.004bee49
mov esp, ebp
pop ebp
ret