Function at 0x40ec83
Capabilities:
Copy file

Disassembly:
push 0x130
mov eax, 0x5f4d4f
call fcn.004e1c06
mov eax, ecx
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x108], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0xfc], ecx
mov ecx, eax
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0x100], ebx
call fcn.00410165
xor edx, edx
cmp dword [esi + 0x10], edx
je 0x40f601
mov eax, dword [ebp - 0x104]
cmp dword [eax + 0x10], edx
je 0x40f601
cmp dword [edi + 0x10], edx
je 0x40f601
test ebx, ebx
je 0x40f601
mov ecx, dword [ebp - 0x108]
test ecx, ecx
je 0x40f601
mov eax, dword [ebp - 0xfc]
test eax, eax
je 0x40f601
push edx
push edx
push 1
mov byte [ecx], dl
push edx
mov byte [eax], dl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x40f601
mov ecx, dword [ebp - 0xf4]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movlpd qword [ebp - 0x2c], xmm0
and dword [ebp - 0x28], 0
mov dword [ecx + 0x70], eax
mov eax, dword [ecx + 0x74]
mov dword [ebp - 0x14], eax
mov dword [ecx + 0x6c], VariantTimeToDosDateTime
mov dword [ebp - 0x2c], vtable.ClassPtr_class_WebClient_.0
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00459fc3
and dword [ebp - 0x60], 0
mov ebx, eax
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0x20], 0
mov eax, dword [eax + 0xac]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40edb0
mov edx, dword [eax]
lea eax, [ebp - 0x60]
push eax
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x6147a0]
mov ecx, dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x60], 1
mov esi, dword [ebp - 0xf8]
je 0x40edcb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40edba
mov eax, dword [esi]
push 1
push str.UpdateOfficeConfig
push eax
call fcn.004a418f
test al, al
je 0x40ede0
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 0x20], 1
jb 0x40edd9
mov eax, dword [esi]
push eax
push ecx
call 0x40d4b6
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40ede8
int3
push dword [ebp - 0x20]
mov eax, dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x14]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x6147a0]
mov ecx, dword [ebp - 0x28]
call esi
mov edx, dword [ebp - 0xf4]
cmp dword [edx + 0x88], 0
je 0x40ee30
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x40ee1a
int3
lea eax, [edx + 0x90]
push eax
lea eax, [edx + 0x78]
push eax
call fcn.0045c422
mov edx, dword [ebp - 0xf4]
test ebx, ebx
js 0x40f4cb
cmp dword [ebp - 0x28], 0
jne 0x40ee3f
int3
mov eax, dword [ebp - 0x104]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40ee4f
mov ecx, dword [eax]
mov esi, dword [ebp - 0xf8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ee5f
mov eax, dword [esi]
push edx
push 1
push ecx
mov ecx, dword [ebp - 0x28]
push eax
call fcn.0045a556
mov ebx, eax
test ebx, ebx
js 0x40f4cb
push 0xdbba0
xor ebx, ebx
lea eax, [ebp - 0x18]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40f470
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x6c], ebx
jl 0x40f470
mov dword [ebp - 0x20], ebx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x40eec6
int3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045b09f
mov ebx, eax
test ebx, ebx
js 0x40f44b
xor ecx, ecx
mov dword [ebp - 0x48], 7
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 3
mov byte [ebp - 0x19], cl
lea ecx, [ebp - 0xa8]
push edi
call fcn.0040ada4
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 4
push eax
call fcn.0045e939
cmp dword [ebp - 0x34], 0
je 0x40f1db
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040ada4
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 5
push eax
call fcn.0045e939
push 8
pop ebx
mov eax, edi
cmp dword [edi + 0x14], ebx
jb 0x40ef4a
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0045e9de
mov esi, eax
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], ebx
jb 0x40ef64
mov esi, dword [esi]
cmp dword [ebp - 0x30], ebx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0045e9de
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], ebx
jb 0x40ef86
mov eax, dword [eax]
push esi
push eax
push ecx
call 0x40bcfa
lea ecx, [ebp - 0x13c]
call fcn.00405a95
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 5
call fcn.00405a95
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0xc], 0
jne 0x40efb5
int3
mov ecx, dword [eax + 0xc]
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x30], ebx
push edx
lea edx, [ebp - 0x19]
mov eax, dword [ecx]
push edx
mov esi, dword [eax + 0x28]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push ecx
mov ecx, esi
call dword [0x6147a0]
call esi
cmp dword [ebp - 0x4c], 0
mov ebx, eax
jne 0x40efed
mov ebx, 0xc02500b7
jmp 0x40f1c7
test ebx, ebx
js 0x40f1c7
mov esi, dword [ebp - 0x100]
lea ecx, [ebp - 0x5c]
push esi
call fcn.0040a5cd
xor al, 1
mov ecx, esi
cmp dword [ebp - 0x48], 8
mov dl, al
mov eax, dword [ebp - 0xfc]
mov byte [eax], dl
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 8
jb 0x40f025
mov ecx, dword [esi]
push eax
push ecx
push edx
push ecx
mov edx, 0x3ea
call fcn.0040bdb6
mov eax, dword [ebp - 0xfc]
cmp byte [eax], 0
je 0x40f160
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10c]
call fcn.004127fc
mov ebx, eax
test ebx, ebx
js 0x40f1c7
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x40f064
mov ecx, dword [edi]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40f0f8
lea eax, [ebp - 0x5c]
cmp esi, eax
je 0x40f097
cmp dword [ebp - 0x48], 8
mov ecx, esi
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.0040aa58
mov ecx, dword [ebp - 0x108]
mov al, byte [ebp - 0x19]
mov byte [ecx], al
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40f0ac
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0045e9de
mov esi, eax
mov byte [ebp - 4], 8
cmp dword [esi + 0x14], 8
jb 0x40f0c7
mov esi, dword [esi]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0045e9de
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x40f0eb
mov eax, dword [eax]
push esi
push eax
push ecx
call 0x40be85
jmp 0x40f1b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40f116
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0045e9de
mov esi, eax
mov byte [ebp - 4], 0xa
cmp dword [esi + 0x14], 8
jb 0x40f131
mov esi, dword [esi]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0045e9de
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x40f155
mov eax, dword [eax]
push ebx
push esi
push eax
push ecx
call 0x40bf41
jmp 0x40f1b1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40f16a
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0045e9de
mov esi, eax
mov byte [ebp - 4], 0xc
cmp dword [esi + 0x14], 8
jb 0x40f185
mov esi, dword [esi]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0045e9de
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x40f1a9
mov eax, dword [eax]
push esi
push eax
push ecx
call 0x40c00f
lea ecx, [ebp - 0x124]
call fcn.00405a95
lea ecx, [ebp - 0x13c]
call fcn.00405a95
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.00405a95
jmp 0x40f3d7
push 8
pop ebx
mov eax, edi
cmp dword [edi + 0x14], ebx
jb 0x40f1e7
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0045e9de
mov esi, eax
mov byte [ebp - 4], 0xe
cmp dword [esi + 0x14], ebx
jb 0x40f201
mov esi, dword [esi]
cmp dword [ebp - 0x30], ebx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0045e9de
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], ebx
jb 0x40f223
mov eax, dword [eax]
push esi
push eax
push ecx
call 0x40c0cb
lea ecx, [ebp - 0x124]
call fcn.00405a95
lea ecx, [ebp - 0x13c]
call fcn.00405a95
and dword [ebp - 0x24], 0
push 0x48
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0x10
push 0
push eax
call fcn.0041ab50
mov ecx, dword [ebp - 0x10c]
add esp, 0xc
push dword [ebp - 0x20]
call fcn.004127fc
mov ebx, eax
test ebx, ebx
js 0x40f3b8
mov eax, dword [ebp - 0x20]
push 1
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
lea ecx, [ebp - 0xf0]
push ecx
push eax
mov ecx, esi
call dword [0x6147a0]
call esi
mov ebx, eax
test ebx, ebx
js 0x40f3b8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40f2a4
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push 0x1001
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
mov ebx, eax
test ebx, ebx
js 0x40f3b8
mov eax, dword [ebp - 0x20]
push 0
push 0
push dword [ebp - 0xe4]
mov ecx, dword [eax]
push dword [ebp - 0xe8]
push dword [ebp - 0x24]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
push eax
call dword [0x6147a0]
call esi
mov ebx, eax
test ebx, ebx
js 0x40f3b8
mov eax, dword [ebp - 0x24]
push 0
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x6147a0]
call esi
mov ebx, eax
test ebx, ebx
js 0x40f3b8
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40f32c
and dword [ebp - 0x24], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x6147a0]
call esi
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x19]
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x10
push eax
push edi
call fcn.0040dd78
mov ebx, eax
test ebx, ebx
js 0x40f3b8
mov esi, dword [ebp - 0x100]
lea ecx, [ebp - 0x5c]
push esi
call fcn.0040a5cd
xor al, 1
mov ecx, esi
cmp dword [ebp - 0x48], 8
mov dl, al
mov eax, dword [ebp - 0xfc]
mov byte [eax], dl
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 8
jb 0x40f37a
mov ecx, dword [esi]
push eax
push ecx
push edx
push ecx
mov edx, 0x42c
call fcn.0040bdb6
mov eax, dword [ebp - 0xfc]
cmp byte [eax], 0
je 0x40f3b8
lea eax, [ebp - 0x5c]
cmp esi, eax
je 0x40f3ad
cmp dword [ebp - 0x48], 8
mov ecx, esi
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.0040aa58
mov ecx, dword [ebp - 0x108]
mov al, byte [ebp - 0x19]
mov byte [ecx], al
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40f3d3
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6147a0]
call esi
mov byte [ebp - 4], 4
test ebx, ebx
js 0x40f438
cmp dword [ebp - 0x4c], 0
je 0x40f438
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40f3eb
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0045e9de
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 8
jb 0x40f404
mov eax, dword [eax]
mov esi, dword [ebp - 0xf8]
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x40f414
mov edx, dword [esi]
mov esi, dword [ebp - 0x104]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40f424
mov ecx, dword [esi]
push eax
push edx
push ecx
push ecx
call 0x40c187
lea ecx, [ebp - 0x124]
call fcn.00405a95
lea ecx, [ebp - 0xa8]
call fcn.00405a95
lea ecx, [ebp - 0x5c]
call fcn.00405a95
lea ecx, [ebp - 0x44]
call fcn.00405a95
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40f4cb
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6147a0]
call esi
jmp 0x40f4cb
push ecx
push ecx
mov ebx, esp
and dword [ebx + 4], 0
mov dword [ebx], vtable.ClassPtr_class_WebClient_.0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x100], ecx
test ecx, ecx
je 0x40f4a1
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6147a0]
call esi
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], ecx
test edx, edx
je 0x40f4bb
mov eax, dword [edx]
push edx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x6147a0]
call esi
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xf4]
call fcn.00410a71
mov ebx, eax
mov eax, dword [ebp - 0xf4]
xor ecx, ecx
add eax, 0xa8
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], cx
mov dword [eax], ecx
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x40f4f7
int3
lea edx, [ebp - 0x78]
push edx
push eax
call fcn.0045b148
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x70], 0
je 0x40f520
push dword [eax + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xf4]
and dword [eax + 0x70], 0
test ebx, ebx
jns 0x40f57d
push 8
pop esi
cmp dword [edi + 0x14], esi
jb 0x40f52e
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x124]
push eax
call fcn.0045e9de
mov ecx, eax
mov byte [ebp - 4], 0x16
cmp dword [ecx + 0x14], esi
jb 0x40f548
mov ecx, dword [ecx]
mov eax, dword [ebp - 0xf8]
mov edx, eax
cmp dword [eax + 0x14], esi
jb 0x40f557
mov edx, dword [eax]
mov eax, dword [ebp - 0x104]
cmp dword [eax + 0x14], esi
jb 0x40f564
mov eax, dword [eax]
push ebx
push ecx
push edx
push eax
push ecx
call 0x40c273
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0x15
call fcn.00405a95
call fcn.004a2b5c
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1f0]
mov ecx, esi
call dword [0x6147a0]
mov ecx, edi
call esi
test al, al
je 0x40f5d7
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0x14], 8
jb 0x40f5aa
mov eax, dword [eax]
push 1
push str.UpdateXml
push eax
call fcn.004a418f
test al, al
je 0x40f5d7
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40f5c3
int3
push dword [eax + 0xd0]
mov eax, dword [ebp - 0xf4]
push dword [eax + 0x6c]
call fcn.00410e66
lea ecx, [ebp - 0x78]
call fcn.00405a95
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
push 0
mov dword [ebp - 0x2c], vtable.ClassPtr_class_WebClient_.0
call fcn.0040a881
mov eax, ebx
call fcn.004e1bb5
ret 0x20
push 0x80004005
call fcn.004059b0
int3