Function at 0x49bf60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c9178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
mov al, byte [esp + 0x84]
xor esi, esi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], esi
mov byte [esp + 0x18], al
call fcn.004962d0
mov cl, byte [esp + 0x84]
push esi
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 1
call fcn.004962d0
mov dl, byte [esp + 0x84]
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 2
mov byte [esp + 0x28], dl
call fcn.004962d0
mov edi, 0x511958
or ecx, 0xffffffff
xor eax, eax
add ebp, 0x3ed8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x6c], 3
push ecx
push esi
push 0x511958
mov ecx, ebp
call fcn.0049d120
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x49c02f
mov al, byte [esp + 0x84]
add ebx, 4
test al, al
je 0x49c081
mov eax, dword [esp + 0x78]
cmp eax, esi
jne 0x49c01d
mov eax, 0x4f6eb8
mov ecx, dword [esp + 0x7c]
push ecx
push ebx
push eax
mov ecx, ebp
call fcn.0049d120
cmp eax, edi
jne 0x49c075
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 2
call fcn.004962d0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 1
call fcn.004962d0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 0
call fcn.004962d0
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], edi
call fcn.004962d0
xor al, al
jmp 0x49c331
mov edx, dword [esp + 0x7c]
lea ebx, [edx + eax + 2]
jmp 0x49c081
xor esi, esi
mov eax, dword [esp + 0x78]
cmp eax, esi
jne 0x49c08e
mov eax, 0x4f6eb8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
push ecx
push ebx
lea edi, [edx + 0x3ed8]
push eax
mov ecx, edi
call fcn.0049d120
cmp eax, 0xffffffff
je 0x49c27b
mov ecx, dword [esp + 0x7c]
lea ebp, [eax + ecx + 2]
mov eax, dword [esp + 0x78]
cmp eax, esi
jne 0x49c0c4
mov eax, 0x4f6eb8
push ecx
push ebp
push eax
mov ecx, edi
call fcn.0049d120
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49c27b
sub eax, ebp
lea ecx, [esp + 0x44]
push eax
push ebp
push ecx
mov ecx, edi
call fcn.0049cbe0
mov edx, dword [0x4f6ebc]
lea ecx, [esp + 0x14]
push edx
push esi
push eax
mov byte [esp + 0x78], 4
call fcn.0049ce40
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 3
call fcn.004962d0
mov edi, 0x511954
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4f6ebc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x511954
lea ecx, [esp + 0x20]
call fcn.0049d1b0
cmp eax, 0xffffffff
je 0x49c27b
mov ecx, dword [esp + 0x1c]
lea edi, [eax - 1]
mov esi, ecx
sub esi, eax
inc esi
cmp ecx, edi
jae 0x49c153
call fcn.004b6412
lea ecx, [esp + 0x14]
call fcn.0049d3e0
mov eax, dword [esp + 0x1c]
sub eax, edi
cmp eax, esi
jae 0x49c168
mov esi, eax
test esi, esi
jbe 0x49c1a4
mov ecx, dword [esp + 0x18]
sub eax, esi
add ecx, edi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.004a8b80
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push 0
push edi
call fcn.0049d2c0
test al, al
je 0x49c1a4
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov byte [edx + edi], 0
lea eax, [esp + 0x24]
push 0
push eax
lea edx, [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x9c], esp
push edx
call fcn.0049c9a0
mov ecx, dword [esp + 0x28]
call fcn.0049b4d0
test al, al
je 0x49c07f
lea eax, [esp + 0x24]
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.004972f0
add esp, 8
lea ecx, [esp + 0x54]
push 1
call fcn.004962d0
mov edi, str.MULTIPART_ALTERNATIVE
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MULTIPART_ALTERNATIVE
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.004a1270
test eax, eax
jne 0x49c269
lea eax, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x98], esp
push edx
call fcn.0049c9a0
mov ecx, dword [esp + 0x24]
call fcn.0049b7f0
test al, al
je 0x49c07f
push 1
lea eax, [esp + 0x38]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x98], esp
push eax
call fcn.0049c9a0
mov ecx, dword [esp + 0x24]
call fcn.0049baa0
jmp 0x49c07f
mov ecx, dword [esp + 0x10]
push 1
push ebx
push ebp
call fcn.00497f50
jmp 0x49c07f
mov ecx, dword [esp + 0x28]
cmp ecx, esi
je 0x49c29f
mov al, byte [ecx - 1]
test al, al
je 0x49c295
cmp al, 0xff
je 0x49c295
dec al
mov byte [ecx - 1], al
jmp 0x49c29f
dec ecx
push ecx
call fcn.004b95c8
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], esi
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
je 0x49c2cf
mov al, byte [ecx - 1]
test al, al
je 0x49c2c5
cmp al, 0xff
je 0x49c2c5
dec al
mov byte [ecx - 1], al
jmp 0x49c2cf
dec ecx
push ecx
call fcn.004b95c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], esi
cmp ecx, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x49c2ff
mov al, byte [ecx - 1]
test al, al
je 0x49c2f5
cmp al, 0xff
je 0x49c2f5
dec al
mov byte [ecx - 1], al
jmp 0x49c2ff
dec ecx
push ecx
call fcn.004b95c8
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], esi
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x49c32f
mov al, byte [ecx - 1]
test al, al
je 0x49c325
cmp al, 0xff
je 0x49c325
dec al
mov byte [ecx - 1], al
jmp 0x49c32f
dec ecx
push ecx
call fcn.004b95c8
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x14