Function at 0x1008d030
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x100b86d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov ebp, ecx
xor edi, edi
mov ecx, esi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov bl, byte [esp + 0x6c]
mov dword [eax], edi
mov dword [ecx], edi
test bl, 2
je 0x1008d087
mov edx, dword [esp + 0x68]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
xor eax, eax
jmp 0x1008d6a5
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x54]
test edi, edi
je 0x1008d142
cmp byte [edi], 0
je 0x1008d142
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push edi
mov byte [esp + 0x60], 2
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x1008d11a
mov eax, dword [esp + 0x24]
cmp eax, 0x100b
mov eax, str.https
je 0x1008d100
mov eax, str.http
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push eax
push str._s:___s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x1008d124
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.100ae920
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0
call fcn.100ae920
jmp 0x1008d14a
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x68]
push 2
push 0x100e533c
push edi
call dword [sym.imp.MSVCRT.dll__strnicmp]
mov ecx, dword [esp + 0x28]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
test ecx, ecx
jne 0x1008d187
test bl, 1
jne 0x1008d187
test bl, 4
je 0x1008d17a
test eax, eax
jne 0x1008d187
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
jmp 0x1008d690
test bl, 8
je 0x1008d1bd
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x68]
mov edx, dword [ebp]
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x54], 3
call dword [edx + 0x18]
lea ecx, [esp + 0x68]
mov byte [esp + 0x4c], 0
call fcn.100ae920
mov ecx, dword [esp + 0x10]
push edi
push ecx
mov ecx, ebp
call fcn.1008ce20
test eax, eax
mov dword [esp + 0x6c], eax
jl 0x1008d2cd
mov edx, dword [ebp + 4]
lea edi, [eax*4]
mov eax, dword [esp + 0x54]
mov esi, dword [edi + edx]
push eax
mov dword [esp + 0x6c], esi
lea ecx, [esi + 0x34]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.1008c3e0
mov ebx, eax
test bl, 4
je 0x1008d278
mov ecx, esi
call fcn.1008c340
mov eax, dword [ebp + 4]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x6c]
mov edx, edi
add edx, eax
sub esi, ebx
push 1
push edx
dec esi
call fcn.1008d790
test esi, esi
je 0x1008d256
mov eax, dword [ebp + 4]
lea ecx, [esi*4]
push ecx
lea edx, [eax + ebx*4 + 4]
add eax, edi
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
dec eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [ebp + 8], eax
call fcn.100ae920
mov eax, 0x80004005
jmp 0x1008d6a5
test bl, 2
je 0x1008d285
lea ecx, [esi + 0x40]
call sub.MFC42.DLL_CString::Empty
test ebx, ebx
je 0x1008d679
lea edi, [esi + 0x40]
push 1
push edi
mov ecx, esi
call fcn.1008c680
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x1008d2be
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.1008c3e0
mov ebx, eax
test bl, 0xc
je 0x1008d338
mov edi, 0x80004005
jmp 0x1008d6be
push 0x48
mov ebx, 2
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x68], eax
test eax, eax
mov byte [esp + 0x4c], 4
je 0x1008d2f4
mov ecx, eax
call fcn.1008c160
mov esi, eax
jmp 0x1008d2f6
xor esi, esi
mov eax, dword [ebp + 0x18]
push 0
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x58], 0
mov dword [esp + 0x74], esi
call fcn.1008c290
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x54]
lea ecx, [esi + 0x34]
push edx
call sub.MFC42.DLL_CString::operator_1
push edi
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CString::operator_1
jmp 0x1008d28d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1008d4cf
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 8
call sub.MFC42.DLL_CString::CString
xor edi, edi
mov word [esp + 0x2c], 0x50
mov dword [esp + 0x28], edi
push 0xc
mov byte [esp + 0x50], 9
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
cmp ebx, edi
mov byte [esp + 0x4c], 0xa
je 0x1008d3da
mov dword [ebx + 4], edi
mov edi, dword [esp + 0x54]
push edi
mov dword [ebx + 8], 1
call fcn.100af44e
test eax, eax
mov dword [ebx], eax
jne 0x1008d3dc
test edi, edi
je 0x1008d3dc
push 0x8007000e
call fcn.100af593
jmp 0x1008d3dc
xor ebx, ebx
test ebx, ebx
mov byte [esp + 0x4c], 9
mov dword [esp + 0x54], ebx
jne 0x1008d3f3
push 0x8007000e
call fcn.100af593
test ebx, ebx
mov byte [esp + 0x4c], 0xb
je 0x1008d400
mov eax, dword [ebx]
jmp 0x1008d402
xor eax, eax
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push ecx
push str.OpenDocument
push eax
call fcn.1009aa30
add esp, 0x1c
mov edi, eax
test ebx, ebx
mov dword [esp + 0x14], edi
mov byte [esp + 0x4c], 9
je 0x1008d456
lea edx, [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1008d456
mov ecx, ebx
call fcn.10026b70
push ebx
call fcn.100ae914
add esp, 4
test edi, edi
jl 0x1008d487
mov edx, dword [esp + 0x78]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x38]
push edx
push eax
lea eax, [esp + 0x30]
push ecx
push eax
call fcn.1009a5b0
mov ecx, dword [esp + 0x38]
add esp, 0x10
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x1008d487
mov edx, dword [ecx]
push 1
call dword [edx + 4]
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 0xf
call fcn.100ae920
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], 0xe
call fcn.100ae920
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0xd
call fcn.100ae920
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xc
call fcn.100ae920
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 0
call fcn.100ae920
jmp 0x1008d4fe
mov eax, dword [edi]
mov ecx, dword [esi + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov dword [esp + 0x14], eax
jns 0x1008d50a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x1008d6ba
mov edx, dword [esi + 0x28]
lea eax, [esi + 0x44]
push eax
mov dword [esi + 0x3c], edx
call dword [sym.imp.MSVCRT.dll_time]
mov eax, dword [esp + 0x70]
add esp, 4
test eax, eax
jge 0x1008d672
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x60], ebx
inc ebx
cmp ebx, edi
jne 0x1008d561
cmp eax, edi
je 0x1008d556
push edx
push eax
call fcn.1008d790
mov eax, dword [ebp + 4]
push eax
call fcn.100ae914
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x1008d668
cmp eax, edi
jne 0x1008d599
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x1008d668
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x1008d5cd
cmp edx, ebx
jge 0x1008d5b7
mov ecx, ebx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp + 8], ebx
jmp 0x1008d668
jle 0x1008d5c5
sub edx, ebx
lea eax, [eax + ebx*4]
push edx
push eax
call fcn.1008d790
mov dword [ebp + 8], ebx
jmp 0x1008d668
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x1008d5f7
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x1008d5eb
mov eax, 4
jmp 0x1008d5f7
cmp eax, 0x400
jle 0x1008d5f7
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x54], eax
jl 0x1008d605
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x54]
lea edx, [ecx*4]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x64], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.10031030
mov eax, dword [ebp + 4]
push eax
call fcn.100ae914
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x6c]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x60]
mov dword [eax + ecx*4], esi
mov ecx, esi
call fcn.1008cb00
mov ecx, dword [esp + 0x70]
add esi, 0x40
push esi
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x74]
mov dword [edx], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.100ae920
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x28
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
test eax, eax
jge 0x1008d6da
test esi, esi
je 0x1008d6da
mov ecx, esi
call fcn.1008c200
push esi
call fcn.100ae914
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.100ae920
mov eax, edi
jmp 0x1008d6a5