Function at 0x435380
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5854d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c8
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x14], edi
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [edi + 4]
push 0
push 0
lea esi, [edi + 4]
push 0x1042
push edx
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
je 0x435a01
push 0x30
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.00555020
mov edx, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0xcc]
push ecx
push 0
push 0x104b
push edx
mov dword [ebp - 0xcc], 5
mov dword [ebp - 0xc8], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x2a8], 0
jne 0x43543b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov edx, dword [edi + 0x2cc]
xor esi, esi
test edx, edx
je 0x4354ee
mov ebx, dword [ebp - 0xac]
xor ecx, ecx
cmp esi, edx
jae 0x43548d
mov eax, dword [edi + 0x2c8]
cmp dword [eax + ecx + 8], ebx
je 0x435489
inc esi
add ecx, 0xc
cmp esi, edx
jb 0x435473
jmp 0x4354ee
cmp esi, edx
jb 0x435497
push 0x80070057
call fcn.00401150
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 0x2c8]
lea ebx, [esi + esi*2]
add ebx, ebx
add ebx, ebx
mov eax, dword [edi + ebx]
add edi, ebx
cmp dword [eax - 4], 1
jle 0x4354bd
mov edx, dword [eax - 0xc]
push edx
mov ecx, edi
call fcn.00403bd0
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x18]
call fcn.00412df0
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax + 0x2cc]
jb 0x4354dd
push 0x80070057
call fcn.00401150
mov ecx, eax
mov eax, dword [ecx + 0x2c8]
mov dl, byte [eax + ebx + 4]
mov byte [ebp + 0x17], dl
mov edi, ecx
mov eax, dword [ebp - 0x18]
push 0x59d4a4
push eax
call fcn.0055784e
add esp, 8
test eax, eax
setne al
test al, al
je 0x435a19
lea ecx, [ebp - 0x28]
push ecx
call fcn.0050a4d0
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x435559
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
push 0x104
push edx
push str.LogsDir
push ecx
call fcn.0050a330
mov edx, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x435626
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x43559f
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4355d4
push str.SHGetFolderPathW__0__0x001a__0__SHGFP_TYPE_DEFAULT__strSysDir.GetBuffer__260__
push eax
lea ecx, [ebp - 0x90]
call fcn.00434a80
push 0x5cc0a0
lea edx, [ebp - 0x90]
push edx
call fcn.00554cbc
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x4355df
xor eax, eax
jmp 0x4355f9
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4355e4
sub eax, esi
sar eax, 1
js 0x43548d
cmp eax, dword [edx - 8]
jg 0x43548d
mov dword [edx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 0x59e03c
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
push str._sData_
push eax
call fcn.0040a750
add esp, 0xc
jmp 0x43566c
test edx, edx
jne 0x43562e
xor eax, eax
jmp 0x435648
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435633
sub eax, esi
sar eax, 1
js 0x43548d
cmp eax, dword [edx - 8]
jg 0x43548d
mov dword [edx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 6
mov word [edx + eax*2], cx
push 0x59e4c8
lea ecx, [ebp - 0x10]
call fcn.00406040
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004021d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x2a8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00406040
push 1
push 0x59e4c4
lea ecx, [ebp - 0x20]
call fcn.00406040
push 9
push 0x59e088
lea ecx, [ebp - 0x20]
call fcn.00406040
push 0xf
push 0x59e4a4
lea ecx, [ebp - 0x20]
call fcn.00406040
mov ecx, dword [ebp - 0x18]
push 0x5c
push ecx
call fcn.00557738
mov ecx, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x4356ec
or eax, 0xffffffff
jmp 0x4356ee
sub eax, ecx
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x18]
call fcn.00432070
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x18]
call fcn.00413260
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435730
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004343a0
lea edx, [ebp - 0x7d4]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
ja 0x435995
test eax, eax
je 0x435995
lea eax, [ebp - 0x7d4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bfb0
mov bl, 0xb
mov byte [ebp - 4], bl
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x3d2]
push edx
mov word [ebp - 0x3d4], cx
call fcn.00555020
mov eax, dword [edi + 0x2bc]
add esp, 0xc
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3d4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push eax
push 0x1073
push edx
mov dword [ebp - 0x50], 0x104
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040bfb0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1c]
push 0x5c
push ecx
call fcn.00557400
add esp, 8
test eax, eax
jne 0x4357ef
or esi, 0xffffffff
jmp 0x4357ff
sub eax, dword [ebp - 0x1c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x435889
lea edx, [ebp - 0x1c]
push 0x59d4a4
push edx
call fcn.00426700
add esp, 8
test al, al
je 0x43586a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00404d60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00404d60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00404d60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404d60
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [ebp + 0x17]
cmp al, 1
jne 0x435878
push str..bmp
jmp 0x435881
cmp al, 2
jne 0x435889
push str..emf
lea ecx, [ebp - 0x1c]
call fcn.0040b5f0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004326e0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00406040
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [edi + 0x34c]
call fcn.00434440
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x4358ea
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00403bd0
mov eax, dword [ebp - 0x14]
push 7
push 0
push 0
push eax
push 0x59bf70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435921
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435943
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
jmp 0x435b3b
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4359b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4359db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435a01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0x59c2bc
lea ecx, [ebp + 0x14]
call fcn.0040bfb0
mov bl, 0x13
mov byte [ebp - 4], bl
mov edi, dword [edi + 0x2bc]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x24]
push edi
push edx
call fcn.00432c50
lea eax, [ebp + 0x14]
push 0x59d4a4
push eax
call fcn.00426700
add esp, 8
test al, al
je 0x435a7f
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4359db
xor ecx, ecx
push 0xfe
push ecx
lea edx, [ebp - 0x1ca]
push edx
mov word [ebp - 0x1cc], cx
call fcn.00555020
mov ecx, dword [0x5fd7c0]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x1cc]
push eax
push 0xb6
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [ebp - 0x1cc]
push edx
lea ecx, [ebp - 0x80]
call fcn.00432db0
mov byte [ebp - 4], 0x16
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x60]
call fcn.00407d40
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [ebp - 0x6c], 0
mov esi, eax
jne 0x435afe
call fcn.00552f9a
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x435afe
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x435b29
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0x5fd800
call fcn.004125d0
mov eax, dword [0x5fd7c0]
push 0
push 0x4129f0
push esi
push 0x8e
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x80]
call fcn.00451650
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435b57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435b85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10