Function at 0x407d40
Capabilities:
Check for time delay via gettickcount
Create directory
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44d158
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.ReleaseDoc_Start_
call fcn.0040faa0
add esp, 4
lea ecx, [ebx + 0x724]
call fcn.004150d0
test eax, eax
jne 0x407df8
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, 0x46a9c8
call fcn.004156e0
mov esi, dword [eax]
lea ecx, [esp + 0x18]
push 0x2b
push ecx
mov ecx, 0x46a9c8
mov dword [esp + 0x458], 0
call fcn.004156e0
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.0043fdfc
lea ecx, [esp + 0x10]
mov dword [esp + 0x450], 0xffffffff
call fcn.0043fdfc
add ebx, 0x20c
push ebx
push 0x46383c
call fcn.0040faa0
add esp, 8
xor eax, eax
jmp 0x4081a8
lea esi, [ebx + 4]
lea ecx, [esp + 0x14]
push esi
call fcn.0043fe6a
push str.EDFAT16.eed
lea ecx, [esp + 0x18]
mov dword [esp + 0x454], 1
call fcn.004401d8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.0043fe6a
push ecx
mov byte [esp + 0x458], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ESAFENETOUT
call fcn.0043fe6a
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x460], 3
call fcn.0043fb71
lea esi, [ebx + 0xf90]
mov byte [esp + 0x45c], 1
push esi
call fcn.00405780
add esp, 0x10
test eax, eax
push 1
jne 0x407ed6
lea eax, [esp + 0x1c]
mov ecx, 0x46a9c8
push eax
call fcn.004156e0
mov esi, dword [eax]
lea ecx, [esp + 0x10]
push 0x2b
push ecx
mov ecx, 0x46a9c8
mov byte [esp + 0x458], 4
call fcn.004156e0
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call fcn.0043fdfc
lea ecx, [esp + 0x18]
mov byte [esp + 0x450], 1
call fcn.0043fdfc
push 0x46380c
jmp 0x408137
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00435800
lea ebp, [ebx + 0x310]
mov ecx, 0x41
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov dl, byte [esi]
mov edi, 0x4636c0
or ecx, 0xffffffff
add esp, 8
mov byte [ebp], dl
mov byte [esp + 0x12c], al
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0xb14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x12d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebp
lea eax, [esp + 0x134]
push str._s_x08
push eax
call fcn.00422d0e
add esp, 0x10
lea ecx, [esp + 0x12c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, str.NC.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 0x108]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp dword [ebx + 0xb3c], 0x500000
jb 0x4080c3
lea ecx, [esp + 0x230]
call fcn.00404560
lea edx, [esp + 0x10]
push 0x24
push edx
mov ecx, 0x46a9c8
mov byte [esp + 0x458], 5
call fcn.004156e0
mov ecx, dword [ebx + 0xb3c]
mov eax, dword [eax]
shl ecx, 1
push 0
lea edx, [ebx + 0x20c]
push ecx
push edx
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x460], 6
call fcn.004045d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 5
call fcn.0043fdfc
lea eax, [esp + 0x230]
lea ecx, [esp + 0x24]
push eax
push 0x404830
push ecx
push ebp
lea ecx, [ebx + 0x724]
call fcn.00415480
lea ecx, [esp + 0x230]
mov esi, eax
call fcn.00404820
lea ecx, [esp + 0x230]
mov edi, eax
mov byte [esp + 0x450], 1
call fcn.004045c0
test edi, edi
je 0x4080da
lea ecx, [esp + 0x14]
mov dword [esp + 0x450], 0xffffffff
call fcn.0043fdfc
xor eax, eax
jmp 0x4081a8
push 0
lea edx, [esp + 0x28]
push 0
push edx
push ebp
lea ecx, [ebx + 0x724]
call fcn.00415480
mov esi, eax
test esi, esi
jne 0x408157
lea eax, [esp + 0x20]
push 1
push eax
mov ecx, 0x46a9c8
call fcn.004156e0
mov esi, dword [eax]
lea ecx, [esp + 0x1c]
push 0x2b
push ecx
mov ecx, 0x46a9c8
mov byte [esp + 0x458], 7
call fcn.004156e0
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
call fcn.0043fdfc
lea ecx, [esp + 0x20]
mov byte [esp + 0x450], 1
call fcn.0043fdfc
push 0x4637e4
call fcn.0040faa0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x450], 0xffffffff
call fcn.0043fdfc
xor eax, eax
jmp 0x4081a8
lea edi, [ebx + 0xd74]
or ecx, 0xffffffff
xor eax, eax
push str.ReleaseDoc_Finish_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040faa0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x450], 0xffffffff
call fcn.0043fdfc
mov eax, 1
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x444
ret