Function at 0x4036d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x160
mov esi, esp
mov dword [esi + 0x148], ebp
mov dword [esi + 0x14c], esp
mov dword [esi + 0x158], 0xffffffff
mov dword [esi + 0x154], 0x41fae0
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], ecx
lea edi, [esi + 0xb0]
lea ecx, [esi + 0x150]
mov dword [esi + 4], edx
mov eax, dword fs:[0]
mov dword [esi + 0x150], eax
mov dword fs:[0], ecx
mov ecx, edi
push 1
push 0x4319eb
push ebx
call fcn.00408b10
add esp, 0xc
movsd xmm1, qword [esi + 0xe0]
movsd xmm2, qword [esi + 0xd8]
movsd xmm0, qword [esi + 0xe8]
lea ecx, [esi + 0x68]
lea edx, [esi + 0x18]
movsd qword [esi + 0x48], xmm1
movsd xmm1, qword [esi + 0xd0]
movsd qword [esi + 0x40], xmm2
movsd xmm2, qword [esi + 0xc8]
movsd qword [esi + 0x50], xmm0
movsd qword [esi + 0x38], xmm1
movsd xmm1, qword [esi + 0xc0]
movsd qword [esi + 0x30], xmm2
movsd xmm2, qword [esi + 0xb0]
movsd qword [esi + 0x28], xmm1
movsd xmm1, qword [esi + 0xb8]
movsd qword [esi + 0x18], xmm2
movsd qword [esi + 0x20], xmm1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], ebx
mov word [esi + 0x60], 1
call fcn.0040a920
cmp dword [esi + 0x70], 0
je 0x4042cb
mov ebx, dword [esi + 0x68]
cmp dword [esi + 0x6c], 0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x118], ecx
je 0x4037ed
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
lea ecx, [esi + 0x18]
call fcn.00418790
cmp dword [esi + 0x18], 1
je 0x4042de
mov eax, dword [esi + 0x24]
movsd xmm0, qword [esi + 0x1c]
mov dword [esi + 0x158], 1
mov dword [esi + 0xb8], eax
movsd qword [esi + 0xb0], xmm0
mov dword [esi + 8], eax
mov eax, dword [esi + 0xb0]
mov dword [esi], eax
push 7
push str.current
call fcn.0041c200
add esp, 8
mov edi, edx
mov edx, dword [esi]
lea ecx, [esi + 0x18]
push edi
push eax
push dword [esi + 8]
call fcn.0041c520
add esp, 0xc
lea eax, [esi + 0x18]
mov dword [esi + 0x158], 2
push eax
call fcn.00414bf0
add esp, 4
mov dword [esi + 0x14], eax
mov dword [esi + 8], edx
push dword [ebp + 8]
push dword [esi + 4]
call fcn.0041c200
add esp, 8
mov edi, edx
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x13c]
push edi
push eax
push dword [esi + 8]
call fcn.0041c520
add esp, 0xc
cmp dword [esi + 0x1c], 0
je 0x4038a6
mov edi, dword [esi + 0x18]
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0xb4], 0
mov edi, dword [esi]
je 0x4038bf
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
lea ecx, [esi + 0x18]
mov dword [esi + 0x158], 3
call fcn.0041b560
cmp dword [esi + 0x18], 0
je 0x4042bf
mov eax, dword [esi + 0x20]
movsd xmm0, qword [esi + 0x18]
mov dword [esi + 0x158], 4
mov dword [esi + 0xb8], eax
movsd qword [esi + 0xb0], xmm0
mov dword [esi + 8], eax
mov eax, dword [esi + 0xb0]
mov dword [esi], eax
push dword [ebp + 8]
push dword [esi + 4]
call fcn.0041c200
add esp, 8
mov edi, edx
mov edx, dword [esi]
lea ecx, [esi + 0xf0]
push edi
push eax
push dword [esi + 8]
call fcn.0041c520
add esp, 0xc
mov edi, dword [esi]
cmp dword [esi + 0xb4], 0
je 0x403944
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x144]
movsd xmm0, qword [esi + 0x13c]
mov byte [esi + 0xf], 1
mov dword [esi + 0x158], 0xb
mov dword [esi + 0x70], eax
lea eax, [esi + 0xf0]
movsd qword [esi + 0x68], xmm0
push eax
call fcn.00414bf0
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
lea eax, [esi + 0x68]
mov dword [esi + 0x158], 0xc
push eax
call fcn.00414bf0
add esp, 4
mov edi, edx
lea ecx, [esi + 0x18]
mov edx, eax
push edi
call fcn.00419430
add esp, 4
cmp dword [esi + 0x18], 1
jne 0x4039d8
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov ebx, 1
mov dword [esi + 0x98], ecx
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], 1
cmp dword [esi + 0x6c], 0
jne 0x403acc
jmp 0x403add
lea eax, [esi + 0x1c]
mov edx, dword [esi]
mov dword [esi + 0x158], 0xd
mov ecx, dword [eax + 8]
movsd xmm0, qword [eax]
mov dword [esi + 0xb8], ecx
movsd qword [esi + 0xb0], xmm0
lea ecx, [esi + 0x18]
push dword [esi + 4]
call fcn.00419430
add esp, 4
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
cmp dword [esi + 0x18], 1
jne 0x403a4c
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], ebx
mov dword [esi + 0x90], 1
cmp dword [esi + 0xb4], 0
mov ebx, 1
je 0x403ac6
mov edi, dword [esi + 0xb0]
call sub.KERNEL32.dll_GetProcessHeap
push edi
jmp 0x403abe
mov eax, dword [esi + 0xb0]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
push 0
push 0
lea ecx, [esi + 0x18]
push ecx
push 0x41fa90
push edi
mov dword [esi], eax
push eax
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x403dea
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
test ebx, ebx
mov dword [esi + 0x9c], ecx
mov dword [esi + 0x98], eax
mov dword [esi + 0x90], 0
je 0x403aac
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
xor ebx, ebx
cmp dword [esi + 0xb4], 0
je 0x403ac6
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0x6c], 0
je 0x403add
mov edi, dword [esi + 0x68]
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
test ebx, ebx
je 0x403afc
mov eax, dword [esi + 0x10]
mov dword [eax], 0
cmp dword [esi + 0xf4], 0
jne 0x404104
jmp 0x404118
lea eax, [esi + 0xf0]
mov dword [esi + 8], ebx
mov dword [esi + 0x158], 5
push eax
call fcn.00414bf0
add esp, 4
mov edi, edx
test edx, edx
js 0x404305
mov ebx, eax
test edi, edi
je 0x403b48
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x403b4d
mov ecx, edi
mov edx, 1
call fcn.00404cd0
ud2
mov eax, 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0
mov dword [esi + 0x158], 6
lea ecx, [esi + 0x18]
mov edx, ebx
push edi
call fcn.0041c210
add esp, 4
mov eax, dword [esi + 0x20]
movsd xmm0, qword [esi + 0x18]
mov dword [esi + 0x158], 7
mov dword [esi + 0x110], eax
lea eax, [esi + 0x108]
movsd qword [esi + 0x108], xmm0
push eax
call fcn.00414bf0
add esp, 4
mov dword [esi], eax
test edx, edx
mov dword [esi + 4], edx
je 0x403c1f
mov edi, dword [esi]
mov edx, edi
add edx, dword [esi + 4]
mov cl, byte [edi]
lea ebx, [edi + 1]
test cl, cl
js 0x403bcf
nop word [eax + eax]
mov edi, ebx
cmp edi, edx
je 0x403c1f
mov cl, byte [edi]
lea ebx, [edi + 1]
test cl, cl
jns 0x403bc0
add edi, 2
cmp cl, 0xe0
jae 0x403be2
cmp ebx, edx
cmove edi, ebx
cmp edi, edx
jne 0x403bc6
jmp 0x403c1f
cmp cl, 0xed
jne 0x403bff
cmp ebx, edx
cmove edi, ebx
cmp edi, edx
je 0x403c1f
inc edi
cmp ebx, edx
je 0x403bc2
cmp byte [ebx], 0x9f
jbe 0x403bc2
jmp 0x4042bf
cmp ebx, edx
mov eax, edi
cmove eax, ebx
lea edi, [eax + 1]
cmp eax, edx
cmove edi, eax
cmp cl, 0xf0
jb 0x403bc2
lea eax, [edi + 1]
cmp edi, edx
cmovne edi, eax
cmp edi, edx
jne 0x403bc6
cmp dword [esi], 0
je 0x4042bf
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x158], 7
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x118]
mov dword [esi + 0xa4], eax
mov eax, dword [esi]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 4]
mov dword [esi + 0xac], eax
call fcn.0040bba0
mov ebx, eax
test eax, eax
je 0x403d7a
mov dword [esi + 0x84], 0x431020
mov dword [esi + 0x88], 0xa
call sub.KERNEL32.dll_GetProcessHeap
push 0xa
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x40430c
mov edi, eax
movzx eax, word [0x431028]
movsd xmm0, qword [0x431020]
mov dword [esi], ebx
xor ecx, ecx
mov edx, edi
mov word [edi + 8], ax
movsd qword [edi], xmm0
push 0xa
call fcn.004088f0
add esp, 4
test eax, eax
jne 0x40431d
lea ecx, [esi + 0x18]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0xa
mov dword [esi + 0x20], 0xa
call fcn.00412900
mov ebx, eax
mov eax, dword [esi]
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], edx
push ebx
push eax
mov edi, edx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x403e36
test edi, edi
mov dword [esi + 4], eax
mov byte [ebx], 0
je 0x403d15
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esi]
lea ecx, [esi + 0x11c]
push 8
push 0x431044
call fcn.0040bde0
mov edx, dword [esi]
add esp, 8
cmp dword [esi + 0x11c], 1
jne 0x403ee4
mov eax, dword [esi + 0x120]
movsd xmm0, qword [esi + 0x124]
test eax, eax
movsd qword [esi + 0x18], xmm0
je 0x4042bf
mov ecx, dword [esi + 0x10]
movsd xmm0, qword [esi + 0x18]
mov ebx, dword [esi + 8]
mov dword [ecx], eax
movsd qword [ecx + 4], xmm0
cmp dword [esi + 0x10c], 0
jne 0x4040e7
jmp 0x4040fb
call sub.KERNEL32.dll_GetProcessHeap
push 0x1a
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ebx, dword [esi + 8]
test eax, eax
je 0x40434e
movzx ecx, word [0x431042]
movsd xmm0, qword [0x43103a]
movsd xmm2, qword [0x431032]
movsd xmm1, qword [0x43102a]
mov word [eax + 0x18], cx
mov ecx, dword [esi + 0x10]
movsd qword [eax + 0x10], xmm0
movsd qword [eax + 8], xmm2
movsd qword [eax], xmm1
mov dword [ecx], eax
mov dword [ecx + 4], 0x1a
mov dword [ecx + 8], 0x1a
cmp dword [esi + 0x10c], 0
jne 0x4040e7
jmp 0x4040fb
call sub.KERNEL32.dll_GetLastError
test ebx, ebx
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 1
je 0x403a2c
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0xb4], 0
mov ebx, 1
jne 0x403a3e
jmp 0x403ac6
lea ecx, [esi + 0x68]
lea eax, [esi + 0x84]
mov dword [esi + 0x18], 0x430ffc
mov dword [esi + 0x1c], 2
mov dword [esi + 0x20], 0
lea edx, [esi + 0x18]
mov dword [esi + 4], edi
mov dword [esi], ebx
mov dword [esi + 0x158], 0xa
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0xb0]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], 0x40c200
mov dword [esi + 0x2c], 1
call fcn.00404d20
mov edi, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
cmp dword [esi + 4], 0
mov edx, dword [esi + 0xb8]
mov ebx, dword [esi]
mov byte [ebx], 0
je 0x403ebc
mov dword [esi + 4], ecx
mov dword [esi + 0x14], edx
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 4]
test edi, edi
je 0x4042bf
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 8]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
cmp dword [esi + 0x10c], 0
jne 0x4040e7
jmp 0x4040fb
mov eax, dword [esi + 0x120]
lea ecx, [esi + 0x68]
mov dword [esi + 0x14], eax
push 7
push 0x43104c
call fcn.0040bde0
add esp, 8
cmp dword [esi + 0x68], 1
jne 0x403f46
movsd xmm0, qword [esi + 0x6c]
mov eax, dword [esi + 0x74]
movsd qword [esi + 0x18], xmm0
mov dword [esi + 0x20], eax
cmp dword [esi + 0x18], 0
je 0x4042bf
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x10]
movsd xmm0, qword [esi + 0x18]
mov ebx, dword [esi + 8]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
cmp dword [esi + 0x10c], 0
jne 0x4040e7
jmp 0x4040fb
mov edx, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi + 0x6c]
add ecx, edx
mov dword [esi + 0x18], edx
lea edx, [esi + 0x18]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x130]
mov word [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov byte [esi + 0x28], 0
call fcn.0040b3d0
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xac]
lea edx, [esi + 0x18]
mov dword [esi + 0x158], 8
add ecx, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0xfc]
mov word [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov byte [esi + 0x28], 0
call fcn.0040b3d0
mov eax, dword [esi + 0x130]
mov dword [esi + 0x158], 9
mov dword [esi], eax
push eax
call dword [esi + 0x7c]
cmp eax, 1
je 0x404089
cmp eax, 2
jne 0x40409d
push dword [esi + 0xfc]
push dword [esi]
call dword [esi + 4]
cmp eax, 1
mov dword [esi + 0x12c], eax
jne 0x40418f
push dword [esi]
call dword [esi + 0x14]
cmp eax, 1
mov dword [esi + 0x80], eax
je 0x40409d
lea eax, [esi + 0xa0]
lea ecx, [esi + 0xa8]
lea edx, [esi + 0x80]
mov dword [esi + 0xb0], 0x43106c
mov dword [esi + 0xb4], 3
mov dword [esi + 0xb8], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x40c200
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x24], 0x40c200
mov dword [esi + 0x28], edx
lea edx, [esi + 0xb0]
mov dword [esi + 0x2c], 0x40a5b0
mov dword [esi + 0xc0], ecx
lea ecx, [esi + 0x84]
mov dword [esi + 0xc4], 3
call fcn.00404d20
jmp 0x404275
push dword [esi]
call dword [esi + 0x14]
cmp eax, 1
mov dword [esi + 0x80], eax
jne 0x404203
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x100], 0
mov dword [eax], 0
je 0x4040c3
mov edi, dword [esi + 0xfc]
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0x134], 0
mov ebx, dword [esi + 8]
je 0x4040de
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0x10c], 0
je 0x4040fb
mov edi, dword [esi + 0x108]
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0xf4], 0
je 0x404118
mov edi, dword [esi + 0xf0]
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
test ebx, ebx
je 0x40417b
cmp byte [esi + 0x94], 2
jb 0x40417b
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
mov dword [esi], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x158], 0
push eax
call dword [ecx]
add esp, 4
mov ebx, dword [esi]
mov eax, dword [ebx + 4]
cmp dword [eax + 4], 0
je 0x40416d
mov edi, dword [ebx]
cmp dword [eax + 8], 9
jae 0x40415d
call sub.KERNEL32.dll_GetProcessHeap
push edi
jmp 0x404165
call sub.KERNEL32.dll_GetProcessHeap
push dword [edi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x150]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0xa0]
lea ecx, [esi + 0xa8]
lea edx, [esi + 0x12c]
mov dword [esi + 0xb0], 0x431054
mov dword [esi + 0xb4], 3
mov dword [esi + 0xb8], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x40c200
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x24], 0x40c200
mov dword [esi + 0x28], edx
lea edx, [esi + 0xb0]
mov dword [esi + 0x2c], 0x40a5b0
mov dword [esi + 0xc0], ecx
lea ecx, [esi + 0x84]
mov dword [esi + 0xc4], 3
call fcn.00404d20
jmp 0x404275
lea eax, [esi + 0xa0]
lea ecx, [esi + 0xa8]
lea edx, [esi + 0x80]
mov dword [esi + 0xb0], 0x43106c
mov dword [esi + 0xb4], 3
mov dword [esi + 0xb8], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x40c200
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x24], 0x40c200
mov dword [esi + 0x28], edx
lea edx, [esi + 0xb0]
mov dword [esi + 0x2c], 0x40a5b0
mov dword [esi + 0xc0], ecx
lea ecx, [esi + 0x84]
mov dword [esi + 0xc4], 3
call fcn.00404d20
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x10]
movsd xmm0, qword [esi + 0x84]
cmp dword [esi + 0x100], 0
mov ebx, dword [esi + 8]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
je 0x4042ad
mov edi, dword [esi + 0xfc]
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0x134], 0
jne 0x4040cf
jmp 0x4040de
mov ecx, 0x43135c
call fcn.00407330
ud2
mov ecx, 0x42f298
xor edx, edx
push 0
call fcn.00406dd0
add esp, 4
ud2
movsd xmm0, qword [esi + 0x1c]
mov ecx, 0x4313d3
mov edx, 0x2b
movsd qword [esi + 0xb0], xmm0
push 0x42f240
push edi
call fcn.00408870
add esp, 8
ud2
call fcn.00404ce0
ud2
mov ecx, 0xa
mov edx, 1
call fcn.00404cd0
ud2
mov dword [esi + 0x18], edx
mov ecx, 0x4313d3
mov edx, 0x2b
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0xa
mov dword [esi + 0x24], 0xa
push 0x430fe4
lea eax, [esi + 0x18]
push eax
call fcn.00408870
add esp, 8
ud2
mov ecx, 0x1a
mov edx, 1
call fcn.00404cd0
ud2