Function at 0x42f920
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x510c7e
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
mov edi, ecx
push eax
mov ecx, 0x51c5ec
call fcn.00406c40
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1cc], 0
call fcn.00417520
add esp, 4
push eax
lea edx, [esp + 0x1c]
push edx
mov ebx, str.config.xml
mov byte [esp + 0x1d0], 1
call fcn.00417ae0
add esp, 8
mov byte [esp + 0x1c8], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f9cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c8], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f9f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fa20
mov dword [esp + 0x1c8], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jmp 0x42fe58
lea ecx, [esp + 0x144]
push ecx
call fcn.004dc840
mov byte [esp + 0x1c8], 5
mov eax, dword [esp + 0x18]
push 3
lea edx, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], edx
call fcn.004288a0
mov byte [esp + 0x1c8], 6
mov ecx, dword [esp + 0x40]
lea esi, [esp + 0x144]
call fcn.004dc8f0
test al, al
mov byte [esp + 0x1c8], 5
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x44]
sete bl
cmp eax, ecx
je 0x42fa87
push eax
call fcn.004ea5da
add esp, 4
test bl, bl
je 0x42faff
mov byte [esp + 0x1c8], 4
cmp dword [esp + 0x1a8], 0x10
mov dword [esp + method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
jb 0x42fab8
mov edx, dword [esp + 0x194]
push edx
call fcn.004ea0ff
add esp, 4
lea ecx, [esp + 0x144]
mov dword [esp + 0x1a8], 0xf
mov dword [esp + 0x1a4], 0
mov byte [esp + 0x194], 0
call fcn.004dbd00
mov dword [esp + 0x1c8], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jmp 0x42fe58
mov ecx, str.Config
lea eax, [esp + 0x144]
call fcn.004dbfc0
test eax, eax
jne 0x42fb45
lea ecx, [esp + 0x144]
mov byte [esp + 0x1c8], 4
call fcn.004209a0
mov dword [esp + 0x1c8], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jmp 0x42fe58
mov ecx, str.Save
call fcn.004dbfc0
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x42fb7b
lea ecx, [esp + 0x144]
mov byte [esp + 0x1c8], 4
call fcn.004209a0
lea ecx, [esp + 0x18]
call fcn.00406cf0
jmp 0x42fe64
mov eax, dword [edi + 0x18]
sub eax, 0x10
call fcn.00404eb0
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c8], 7
call fcn.00415210
lea edi, [esp + 0x20]
call fcn.00421580
mov ebx, dword [esp + 0x20]
add ebx, 0xfffffff0
mov eax, ebx
call fcn.00404eb0
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x1c8], 8
call fcn.004151d0
mov dword [esp + 0x34], str.DownloadFilePath
mov dword [esp + 0x38], str.BackupDataPath
xor ebp, ebp
jmp 0x42fbe5
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + ebp*4 + 0x34]
mov eax, esi
call fcn.004dbfc0
test eax, eax
je 0x42fd8f
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42fc1c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x42fc1c
cmp dword [eax + 0x38], 0x10
jb 0x42fc17
mov eax, dword [eax + 0x24]
jmp 0x42fc1e
add eax, 0x24
jmp 0x42fc1e
xor eax, eax
lea ecx, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
call fcn.00407810
lea edx, [esp + 0x14]
mov byte [esp + 0x1c8], 9
mov ecx, dword [esp + 0x40]
push edx
call fcn.00406c40
mov byte [esp + 0x1c8], 0xb
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x44]
cmp eax, ecx
je 0x42fc63
push eax
call fcn.004ea5da
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00415210
lea edi, [esp + 0x14]
call fcn.00421580
lea edx, [esp + 0x20]
push edx
mov eax, edi
call fcn.00435540
add esp, 4
test al, al
je 0x42fca4
test ebp, ebp
jne 0x42fc98
mov byte [0x54634d], 1
jmp 0x42fd67
mov byte [0x54634c], 1
jmp 0x42fd67
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42fd67
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x42fd67
push eax
push ecx
call fcn.004ec267
add esp, 8
test eax, eax
je 0x42fd67
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
jne 0x42fd67
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x42fd67
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00406c40
mov byte [esp + 0x1c8], 0xc
mov edx, dword [esp + 0x1c]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.00415b50
add esp, 4
test eax, eax
je 0x42fd4c
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
call fcn.00435540
add esp, 4
test al, al
je 0x42fd4c
test ebp, ebp
jne 0x42fd3d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00415f20
add esp, 4
jmp 0x42fd5e
mov edx, dword [esp + 0x1c]
push edx
call fcn.00415e80
add esp, 4
jmp 0x42fd5e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00417190
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00406cf0
mov byte [esp + 0x1c8], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42fd8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, 2
jl 0x42fbe1
mov byte [esp + 0x1c8], 7
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fdc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c8], 5
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fde2
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x1c8], 4
cmp dword [esp + 0x1a8], 0x10
mov dword [esp + method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
jb 0x42fe0f
mov eax, dword [esp + 0x194]
push eax
call fcn.004ea0ff
add esp, 4
lea ecx, [esp + 0x144]
mov dword [esp + 0x1a8], 0xf
mov dword [esp + 0x1a4], 0
mov byte [esp + 0x194], 0
call fcn.004dbd00
mov dword [esp + 0x1c8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fe64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004ea10a
add esp, 0x1b8
ret