Function at 0x409c79
Capabilities:
Create directory
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb00
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.0040154a
lea esi, [esp + 0x38]
mov dword [esp + 0xb14], ebx
call fcn.0040a61e
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xb18], 1
call fcn.0040ada5
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call fcn.0040154a
mov eax, dword [ebp + 8]
mov byte [esp + 0xb14], 3
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x409ce9
sub eax, ecx
sar eax, 1
lea ecx, [eax + 1]
mov eax, 0x400
cmp ecx, eax
jae 0x409d1e
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409d0a
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
jmp 0x409d20
mov edi, eax
lea eax, [esp + 0x94]
call fcn.004062c0
lea ecx, [esp + 0x24]
call fcn.0040154a
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esp + 0x34]
push eax
push 5
mov byte [esp + 0xb20], 5
call fcn.0041aab8
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x409d5e
mov eax, dword [ecx]
push ebx
push dword [esp + 0x34]
call dword [eax + 8]
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x2f
call fcn.0041b84b
push str.attachment__filename__.__
lea eax, [esp + 0x3c]
call fcn.0040a63a
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403884
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040a71d
test eax, eax
jne 0x409dd4
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esp + 0x1c]
push eax
push 1
call fcn.0041b84b
push str.name__.__
lea eax, [esp + 0x3c]
call fcn.0040a63a
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403884
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040a71d
test eax, eax
je 0x409e00
lea edi, [esp + 0x10]
lea ebx, [esp + 0x20]
lea eax, [esp + 0x6c]
call fcn.0040ad71
push dword [esp + 0x20]
lea ecx, [esp + 0x1c]
call fcn.00401b2d
lea esi, [esp + 0x18]
call fcn.00409c15
jmp 0x409f15
push edi
call fcn.0040ebbc
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x409e0f
sub eax, ecx
sar eax, 1
inc eax
push eax
push dword [ebp + 8]
lea eax, [esp + 0x3c]
push edi
push esi
push eax
call fcn.00429199
add esp, 0x14
push esi
lea eax, [esp + 0xc4]
call fcn.004062e7
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe0]
push eax
mov byte [esp + 0xb1c], 6
call fcn.0040cafb
pop ecx
pop ecx
lea ebx, [esp + 0x94]
mov byte [esp + 0xb14], 7
call fcn.0040a60a
lea edi, [esp + 0xdc]
mov byte [esp + 0xb14], 6
call fcn.00406319
lea edi, [esp + 0xc0]
mov byte [esp + 0xb14], 5
call fcn.00406319
mov eax, ebx
call fcn.00406381
push eax
lea ecx, [esp + 0x18]
call fcn.00404dcf
push esi
mov byte [esp + 0xb18], 8
call fcn.0040ebb1
lea eax, [esp + 0x3c]
mov dword [esp], str._____
call fcn.0040a63a
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
call fcn.00403884
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040a71d
test eax, eax
je 0x409f04
lea edi, [esp + 0x10]
lea ebx, [esp + 0x20]
lea eax, [esp + 0x6c]
call fcn.0040ad71
push dword [esp + 0x20]
lea ecx, [esp + 0x1c]
call fcn.00401b2d
lea ecx, [esp + 0x14]
mov byte [esp + 0xb14], 5
call fcn.004015a7
lea ecx, [esp + 0x18]
call fcn.00401529
test al, al
je 0x409f69
push 0x118
call fcn.0040157e
mov dword [esp + 0x14], eax
mov byte [esp + 0xb14], 9
test eax, eax
je 0x409f4c
push 0x87
push 1
mov ecx, eax
call fcn.00404d1e
jmp 0x409f4e
xor eax, eax
mov byte [esp + 0xb14], 5
mov dword [esp + 0x14], eax
push 0x44b27c
lea eax, [esp + 0x18]
push eax
call fcn.00429bb6
lea eax, [esp + 0xf8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x409fd8
push 0x14
call fcn.0040157e
mov dword [esp + 0x14], eax
mov byte [esp + 0xb14], 0xa
test eax, eax
je 0x409fbf
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4449e6
call fcn.00404dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x91
push dword [esp + 0x20]
call fcn.00404b20
jmp 0x409fc1
xor eax, eax
mov byte [esp + 0xb14], 5
mov dword [esp + 0x10], eax
push 0x44b26c
lea eax, [esp + 0x14]
jmp 0x409f63
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, eax
test esi, esi
je 0x40a041
push 0x14
call fcn.0040157e
mov dword [esp + 0x14], eax
mov byte [esp + 0xb14], 0xb
test eax, eax
je 0x40a025
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4449e6
call fcn.00404dcf
push esi
push 0x92
push dword [esp + 0x20]
call fcn.00404b20
jmp 0x40a027
xor eax, eax
mov byte [esp + 0xb14], 5
mov dword [esp + 0x10], eax
push 0x44b26c
lea eax, [esp + 0x14]
jmp 0x409f63
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
push dword [esp + 0x2c]
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x2c]
push str._s_s
push eax
call fcn.00403870
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.00403884
push 0
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a0e7
push 0x14
call fcn.0040157e
mov dword [esp + 0x14], eax
mov byte [esp + 0xb14], 0xc
test eax, eax
je 0x40a0cb
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00403557
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x93
push dword [esp + 0x20]
call fcn.00404b20
jmp 0x40a0cd
xor eax, eax
mov byte [esp + 0xb14], 5
mov dword [esp + 0x10], eax
push 0x44b26c
lea eax, [esp + 0x14]
jmp 0x409f63
push dword [esp + 0x18]
lea eax, [esp + 0xfc]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x34]
push str._s_s_s
push eax
call fcn.00403870
add esp, 0x14
lea ecx, [esp + 0x28]
call fcn.00403884
push 0x9001
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], eax
call fcn.0041f203
mov esi, dword [ebp + 0xc]
mov byte [esp + 0xb14], 0xd
mov edi, 0x800
jmp 0x40a1ab
push ebx
lea eax, [esp + 0x304]
push eax
lea ecx, [esp + 0x60]
call fcn.0041e803
mov eax, dword [ebp + 0x10]
add dword [esp + 0x1c], ebx
test eax, eax
je 0x40a1ab
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test ecx, ecx
jns 0x40a166
fadd dword [0x446340]
mov ecx, dword [esp + 0x30]
fmul qword [0x446338]
fild dword [esp + 0x30]
test ecx, ecx
jns 0x40a17e
fadd dword [0x446340]
fdivp st(1)
mov ebx, dword [eax]
push 0x3e8
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd qword [0x446330]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.0042ba36
mov ecx, dword [ebp + 0x10]
movzx eax, ax
push eax
call dword [ebx]
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x304]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov ebx, eax
test ebx, ebx
jne 0x40a137
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push eax
push dword [esp + 0x1c]
call edi
test eax, eax
jne 0x40a233
push 0x14
call fcn.0040157e
mov dword [esp + 0x14], eax
mov byte [esp + 0xb14], 0xe
test eax, eax
je 0x40a217
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00403557
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x94
push dword [esp + 0x20]
call fcn.00404b20
jmp 0x40a219
xor eax, eax
mov byte [esp + 0xb14], 0xd
mov dword [esp + 0x10], eax
push 0x44b26c
lea eax, [esp + 0x14]
jmp 0x409f63
push 4
push 0
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40a29c
push 0x14
call fcn.0040157e
mov dword [esp + 0x14], eax
mov byte [esp + 0xb14], 0xf
test eax, eax
je 0x40a280
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00403557
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x94
push dword [esp + 0x20]
call fcn.00404b20
jmp 0x40a282
xor eax, eax
mov byte [esp + 0xb14], 0xd
mov dword [esp + 0x10], eax
push 0x44b26c
lea eax, [esp + 0x14]
jmp 0x409f63
lea ecx, [esp + 0x58]
call fcn.0041ea67
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40a2b5
push dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x58]
mov byte [esp + 0xb14], 5
call fcn.0041ec09
lea ecx, [esp + 0x24]
call fcn.004015a7
lea edi, [esp + 0x94]
mov byte [esp + 0xb14], 3
call fcn.00406319
lea ecx, [esp + 0x28]
call fcn.004015a7
lea edi, [esp + 0x6c]
call fcn.00409bfa
lea eax, [esp + 0x38]
call fcn.00409bf2
lea ecx, [esp + 0x18]
call fcn.004015a7
mov ecx, dword [esp + 0xb0c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc