Function at 0x10006d40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018954c
push eax
mov eax, dword [0x10201328]
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x10006d82
push str.CMailHandle::RepackMail:__Start_to_decrypt__r_n
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [eax + 0x130], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], ebx
push ecx
mov ecx, dword [esi + 0x28]
call fcn.1001f690
mov edx, dword [esi + 0x28]
mov eax, dword [eax]
lea ecx, [esi + 0x2c]
mov byte [esp + 0x54], 1
mov edx, dword [edx + 0xe4]
mov dword [esp + 0x20], ecx
push edx
lea edx, [esp + 0x30]
push edx
push eax
call fcn.10049680
test eax, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
sete byte [esp + 0x13]
call fcn.10077520
cmp byte [esp + 0x13], bl
jne 0x10007029
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10007082
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov eax, dword [esi + 0x28]
mov byte [esp + 0x54], 2
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
push ecx
lea ecx, [esp + 0x20]
push ecx
push edx
mov edx, dword [eax + 0xc]
push ebp
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.1000a7d0
mov ebp, eax
mov eax, dword [0x10201328]
add esp, 0x1c
cmp eax, ebx
je 0x10006e78
call edi
sub eax, dword [esp + 0x18]
push eax
push str.CMailHandle::RepackMail:__Decrypt_Mail_take_takes__d
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
mov eax, dword [0x10201328]
add esp, 0x14
cmp ebp, ebx
je 0x100070db
cmp dword [esp + 0x1c], ebx
je 0x10007160
call edi
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
call fcn.1001f5a0
mov ecx, dword [esi + 0x28]
push eax
add ecx, 0x154
mov byte [esp + 0x58], 3
call fcn.100776b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 2
call fcn.10077520
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x24]
push eax
mov ebp, dword [ecx + 0x154]
call fcn.1001f690
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x60], 4
call fcn.10049da0
mov ebp, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x54], 2
call fcn.10077520
cmp ebp, ebx
je 0x100071e5
mov edx, dword [esi + 0x28]
mov ebp, 1
lea ecx, [esi + 0x100]
mov dword [edx + 0x130], ebp
mov eax, dword [esi + 0x28]
add eax, 0x154
push eax
call fcn.100776b0
lea ecx, [esp + 0x28]
mov dword [esi + 0xf4], ebp
mov dword [esi + 0x128], ebp
call fcn.1000d5d0
mov eax, dword [esi + 0x120]
add esi, 0xd8
push eax
push esi
mov byte [esp + 0x5c], 7
call fcn.1000d6d0
mov eax, dword [0x10201328]
add esp, 8
cmp eax, ebx
je 0x10006f80
call edi
sub eax, dword [esp + 0x18]
push eax
push str.CMailHandle::RepackMail:__Finish_to_Repack__Takes__d._Finish_to_decrypt__r_n
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 2
call fcn.1000d6c0
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x54], bl
cmp esi, ebx
je 0x10006fd8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x10006fcf
lea edi, [eax]
lea ecx, [esi + 8]
mov byte [esp + 0x54], 8
call fcn.10077520
lea ecx, [esi + 4]
mov byte [esp + 0x54], bl
call fcn.10077520
add esi, 0xc
dec edi
mov dword [esp + 0x18], esi
jne 0x10006fa8
mov esi, dword [esp + 0x3c]
push esi
call fcn.1017c36b
add esp, 4
mov esi, dword [esp + 0x2c]
or ebp, 0xffffffff
cmp esi, ebx
mov dword [esp + 0x54], ebp
je 0x1000729d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x10007294
lea edi, [eax]
mov ebx, 9
lea ecx, [esi + 8]
mov dword [esp + 0x54], ebx
call fcn.10077520
lea ecx, [esi + 4]
mov dword [esp + 0x54], ebp
call fcn.10077520
add esi, 0xc
dec edi
mov dword [esp + 0x18], esi
jne 0x10007002
jmp 0x10007290
cmp dword [0x10201328], ebx
je 0x1000704a
push str.CMailHandle::RepackMail:__Extract_attachment_failed__r_n
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
cmp esi, ebx
mov dword [esp + 0x54], 0xffffffff
je 0x1000729d
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10007294
lea edi, [eax]
mov ecx, esi
call fcn.100073a0
add esi, 0xc
dec edi
jne 0x10007070
jmp 0x10007290
cmp dword [0x10201328], ebx
je 0x100070a7
push str.CMailHandle::RepackMail:__No_attachment__r_n
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
mov eax, dword [esp + 0x40]
add esp, 0x10
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
cmp esi, ebx
mov dword [esp + 0x54], 0xffffffff
je 0x1000729d
cmp eax, ebx
je 0x10007294
lea edi, [eax]
mov ecx, esi
call fcn.100073a0
add esi, 0xc
dec edi
jne 0x100070c9
jmp 0x10007290
cmp eax, ebx
je 0x100070f8
push str.CMailHandle::RepackMail:__Decrypt_failed__r_n
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], ebx
cmp esi, ebx
mov byte [esp + 0x54], bl
je 0x1000712c
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x10007123
lea edi, [eax]
mov ecx, esi
call fcn.100073a0
add esi, 0xc
dec edi
jne 0x10007112
mov esi, dword [esp + 0x3c]
push esi
call fcn.1017c36b
add esp, 4
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
cmp esi, ebx
je 0x1000729d
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10007294
lea edi, [eax]
mov ecx, esi
call fcn.100073a0
add esi, 0xc
dec edi
jne 0x1000714e
jmp 0x10007290
cmp eax, ebx
je 0x1000717d
push str.CMailHandle::RepackMail:__Neednt_to_decrypt__r_n
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], ebx
cmp esi, ebx
mov byte [esp + 0x54], bl
je 0x100071b1
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x100071a8
lea edi, [eax]
mov ecx, esi
call fcn.100073a0
add esi, 0xc
dec edi
jne 0x10007197
mov esi, dword [esp + 0x3c]
push esi
call fcn.1017c36b
add esp, 4
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
cmp esi, ebx
je 0x1000729d
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10007294
lea edi, [eax]
mov ecx, esi
call fcn.100073a0
add esi, 0xc
dec edi
jne 0x100071d3
jmp 0x10007290
cmp dword [0x10201328], ebx
je 0x10007206
push str.CMailHandle::RepackMail:__ReplaceAndSave_attachment_failed__r_n
push str.CMailHandle
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x54], bl
cmp esi, ebx
je 0x1000724e
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], esi
cmp edi, ebx
je 0x10007245
lea ecx, [esi + 8]
mov byte [esp + 0x54], 5
call fcn.10077520
lea ecx, [esi + 4]
mov byte [esp + 0x54], bl
call fcn.10077520
add esi, 0xc
dec edi
mov dword [esp + 0x18], esi
jne 0x1000721e
mov esi, dword [esp + 0x3c]
push esi
call fcn.1017c36b
add esp, 4
mov esi, dword [esp + 0x2c]
or ebp, 0xffffffff
cmp esi, ebx
mov dword [esp + 0x54], ebp
je 0x1000729d
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], esi
cmp edi, ebx
je 0x10007294
mov ebx, 6
lea ecx, [esi + 8]
mov dword [esp + 0x54], ebx
call fcn.10077520
lea ecx, [esi + 4]
mov dword [esp + 0x54], ebp
call fcn.10077520
add esi, 0xc
dec edi
mov dword [esp + 0x18], esi
jne 0x1000726e
mov esi, dword [esp + 0x2c]
push esi
call fcn.1017c36b
add esp, 4
mov ecx, dword [esp + 0x20]
call fcn.1004aff0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret