Function at 0x1001b300
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057a23
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x10069700]
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 esi, ecx
mov dword [ebp - 0x5c], esi
xor ebx, ebx
push 0x8001
mov dword [ebp - 4], ebx
call fcn.10029186
mov dword [ebp - 0x54], eax
mov eax, dword [esi]
mov edi, dword [eax]
add esp, 4
mov dword [ebp - 0x50], edi
cmp edi, eax
jne 0x1001b3c3
mov eax, dword [ebp - 0x54]
push eax
call fcn.10028891
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
add esp, 4
cmp esi, ebx
je 0x1001b396
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001b396
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001b396
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
xor eax, eax
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.100282cc
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Attachment_is_sending_
call esi
push str.Please_be_patient_
call esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push 0xe
push str.__qwertyuiop_r_n
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.100076c0
push 0x29
push str.Content_Type:_application_octet_stream__r_n
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 7
push str._name_
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
mov ecx, dword [edi + 8]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1001b420
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 1
push 0x1005dd94
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 2
push 0x1005dba0
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 0x23
push str.Content_Transfer_Encoding:_base64_r_n
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 0x22
push str.Content_Disposition:_attachment__r_n
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 0xb
push str._filename_
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
mov ecx, dword [edi + 8]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1001b486
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 1
push 0x1005dd94
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 2
push 0x1005dba0
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
push 2
push 0x1005dba0
lea ecx, [ebp - 0x2c]
call fcn.10005ff0
sub esp, 8
mov esi, esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], esp
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], ecx
cmp eax, ebx
je 0x1001b547
mov ecx, dword [eax + 4]
lea edx, [eax + 4]
cmp ecx, ebx
je 0x1001b547
lea ecx, [ecx]
lea edi, [ecx + 1]
mov ebx, edx
mov eax, ecx
lock cmpxchg dword [ebx], edi
xor ebx, ebx
cmp eax, ecx
je 0x1001b509
mov ecx, dword [edx]
cmp ecx, ebx
jne 0x1001b4f0
jmp 0x1001b544
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x1001b539
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001b539
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001b539
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x4c]
mov dword [esi + 4], ecx
mov dword [esi], edx
mov edi, dword [ebp - 0x50]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp - 0x2c]
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.10006110
mov byte [ebp - 4], 1
call fcn.1001a150
mov ecx, dword [edi + 8]
sub ecx, 0xffffff80
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.1001bc20
mov byte [ebp - 4], 3
cmp dword [ebp - 0xac], ebx
je 0x1001b78e
mov eax, dword [ebp - 0x54]
push 0x8001
push ebx
push eax
call fcn.1002d5e0
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx + 4]
add esp, 0xc
cmp dword [ebp + edx - 0x104], ebx
jne 0x1001b736
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.10013b00
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x108]
push edx
push eax
push 0x1006cb90
call fcn.1000ca60
mov esi, eax
push esi
mov cl, 0xa
call fcn.10004c40
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x1001b617
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x1001b617
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x1001b636
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x1001b62f
or eax, 4
push ebx
push eax
call fcn.10001710
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x108]
lea edx, [edx + ecx]
call fcn.10013680
push ecx
mov esi, esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], esp
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x58], ecx
cmp eax, ebx
je 0x1001b6d5
mov ecx, dword [eax + 4]
lea edx, [eax + 4]
cmp ecx, ebx
je 0x1001b6d5
lea edi, [ecx + 1]
mov ebx, edx
mov eax, ecx
lock cmpxchg dword [ebx], edi
xor ebx, ebx
cmp eax, ecx
je 0x1001b69a
mov ecx, dword [edx]
cmp ecx, ebx
jne 0x1001b681
jmp 0x1001b6d5
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x1001b6ca
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001b6ca
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001b6ca
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
mov dword [esi + 4], ecx
mov dword [esi], edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 5
push ebx
lea eax, [ebp - 0x48]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.10006110
mov byte [ebp - 4], 4
call fcn.1001a150
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 0x10
jb 0x1001b718
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10028db2
add esp, 4
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 4]
cmp dword [ebp + eax - 0x104], ebx
je 0x1001b5c0
mov edi, dword [ebp - 0x50]
mov esi, 0xf
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.1001bd80
lea ecx, [ebp - 0xa8]
push ecx
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.100232c9
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x1001b770
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10028db2
add esp, 4
mov edi, dword [edi]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x50], edi
cmp edi, dword [eax]
jne 0x1001b3c0
jmp 0x1001b353
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.1001bd80
lea ecx, [ebp - 0xa8]
push ecx
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.100232c9
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x1001b7c8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10028db2
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp esi, ebx
je 0x1001b808
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001b808
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001b808
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, 4
jmp 0x1001b398