Function at 0x40a250
Capabilities:
Encrypt data using camellia
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6768f3
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x71906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x1e4]
mov dword [ebp - 4], 0
call fcn.004cf0cf
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 1
call fcn.004cf0cf
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
mov byte [ebp - 4], 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 0
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
call fcn.004cc3ea
add esp, 0xc
test eax, eax
je 0x40a366
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x12c]
push eax
call fcn.004cc256
add esp, 0x1c
lea ecx, [ebp + 8]
push eax
call fcn.004068d0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a366
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a35c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aefa
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push dword [ebp - 0x1e8]
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov esi, dword [ebp + 0x18]
cmp ebx, 0x10
push 1
cmovae eax, dword [ebp + 8]
push 0x70082c
push 0
push esi
push eax
call fcn.0040b440
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
je 0x40a42a
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp esi, edx
jb 0x40aeff
sub esi, edx
lea eax, [ebp + 8]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp ebx, 0x10
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x12c]
add eax, edx
push eax
call fcn.00406e90
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp + 8]
call fcn.004068d0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a42a
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a420
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af04
push edx
push ecx
call fcn.0042d6b0
add esp, 8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004cf739
test al, al
jne 0x40a444
xor bl, bl
jmp 0x40ae3f
push 4
push str.data
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004cf58c
mov byte [ebp - 4], 4
mov bl, al
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a4ce
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a4c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af09
push edx
push ecx
call fcn.0042d6b0
add esp, 8
test bl, bl
je 0x40ae38
push 0x110
call fcn.0042d6e1
push 0x110
mov esi, eax
push 0
push esi
call fcn.00507100
add esp, 0x10
mov ecx, esi
call fcn.0040af50
mov dword [edi + 0x50], eax
lea ecx, [ebp - 0x12c]
push 3
push 0x7007f4
mov dword [eax + 0x30], 0
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov dword [eax + 0xdc], 0
call fcn.00406e90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0x30
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf538
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a598
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a58e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af0e
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 8
push str.filename
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0x34
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a620
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a616
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af13
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov eax, dword [edi + 0x50]
cmp dword [eax + 0x44], 0
ja 0x40a6b5
push 9
push str.file_name
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0x34
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a6b5
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af18
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 8
push str.fullname
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0x4c
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a73d
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a733
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af1d
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 7
push str.downurl
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0x64
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a7c5
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af22
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 8
push str.softtype
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0x94
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a84f
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a845
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af27
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 4
push str.size
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0xac
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a8d9
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a8cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af2c
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 4
push str.type
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0xdc
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf538
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a963
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a959
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af31
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 3
push 0x700878
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x50]
add eax, 0xe0
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a9ed
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af36
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 0xb
push str.description
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00406e90
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x194]
call fcn.004cf63d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40aa75
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af3b
push edx
push ecx
call fcn.0042d6b0
add esp, 8
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push 0
push dword [ebp - 0x134]
cmovae eax, dword [ebp - 0x144]
push eax
call fcn.004cc3ea
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x144]
je 0x40aaf8
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004cd2fa
add esp, 8
mov ecx, dword [edi + 0x50]
push eax
add ecx, 0x7c
call fcn.004088b0
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x40ab23
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
jmp 0x40ab19
push 0x3a8
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x12c]
push eax
call fcn.004cca9a
add esp, 0x20
jmp 0x40aab4
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov eax, dword [edi + 0x50]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40ab34
mov eax, dword [eax]
push 0
push ecx
push eax
call fcn.004cc3ea
add esp, 0xc
test eax, eax
je 0x40abaa
mov eax, dword [edi + 0x50]
sub esp, 0x18
add eax, 0x34
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x12c]
push eax
call fcn.004cc256
mov ecx, dword [edi + 0x50]
add esp, 0x1c
add ecx, 0x34
push eax
call fcn.004068d0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40abaa
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aba0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov eax, dword [edi + 0x50]
add eax, 0x4c
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40abbb
mov eax, dword [eax]
push 0
push ecx
push eax
call fcn.004cc3ea
add esp, 0xc
test eax, eax
je 0x40ac31
mov eax, dword [edi + 0x50]
sub esp, 0x18
add eax, 0x4c
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x12c]
push eax
call fcn.004cc256
mov ecx, dword [edi + 0x50]
add esp, 0x1c
add ecx, 0x4c
push eax
call fcn.004068d0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40ac31
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00507100
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [edi + 0x50]
lea edx, [ebp - 0x114]
add ecx, 0x18
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40ac68
sub edx, esi
lea eax, [ebp - 0x114]
push edx
push eax
call fcn.00406e90
mov eax, dword [edi + 0x50]
add eax, 0xe0
cmp dword [eax + 0x14], 0x10
jb 0x40ac8e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, dword [edi + 0x50]
push eax
add ecx, 0x18
call fcn.004067c0
mov eax, dword [edi + 0x50]
push 0
push 0
push 0
push 0
push 0x3a8
sub esp, 0x18
add eax, 0x18
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x15c]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 8
jb 0x40acda
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x50]
push 0x3a8
sub esp, 0x18
add eax, 0xe0
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x12c]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
jb 0x40ad0e
mov eax, dword [eax]
push eax
call fcn.004df580
add esp, 0x18
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x118]
test al, al
sete bl
cmp edx, 8
jb 0x40ad60
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
push edx
push ecx
call fcn.0042d6b0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
cmp edx, 8
jb 0x40adc1
mov ecx, dword [ebp - 0x15c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40adb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
push edx
push ecx
call fcn.0042d6b0
add esp, 8
test bl, bl
je 0x40addd
mov eax, dword [edi + 0x50]
add eax, 0x18
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40adda
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x194]
call fcn.004cf90a
mov ecx, dword [edi + 0x50]
push eax
add ecx, 0xf8
call fcn.004068d0
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x40ae38
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
push edx
push ecx
call fcn.0042d6b0
add esp, 8
cmp dword [edi + 0x50], 0
setne bl
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x40ae79
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
push edx
push ecx
call fcn.0042d6b0
add esp, 8
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.004cf185
lea ecx, [ebp - 0x1e4]
call fcn.004cf185
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40aeda
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aed0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af40
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d065
mov esp, ebp
pop ebp
ret 0x18
call fcn.0050cc3e
call fcn.00405020
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
int3