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

Disassembly:
push 0xffffffffffffffff
push 0x4f58bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov al, byte [esp + 2]
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x17], 1
mov byte [esp + 0x34], al
call fcn.004c8bd0
mov cl, byte [esp + 0x12]
push ebp
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0xa0], ebp
call fcn.004c8bd0
mov dl, byte [esp + 0x12]
push ebp
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
mov byte [esp + 0x58], dl
call fcn.004c8bd0
or esi, 0xffffffff
mov edi, str.BOUNDARY_
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.BOUNDARY_
lea ecx, [esp + 0x5c]
call fcn.004bb900
mov al, byte [esp + 0x12]
push ebp
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 2
mov byte [esp + 0x68], al
call fcn.004c8bd0
mov edi, str.BOUNDARY
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.BOUNDARY
lea ecx, [esp + 0x6c]
call fcn.004bb900
mov cl, byte [esp + 0x12]
push ebp
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.004c8bd0
mov edi, str.CONTENT_TYPE:
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.CONTENT_TYPE:
lea ecx, [esp + 0x48]
call fcn.004bb900
mov dword [ebx + 0x3f28], ebp
mov eax, dword [ebx + 0x3ee0]
cmp eax, ebp
mov byte [esp + 0x9c], 4
mov dword [esp + 0x50], ebp
jne 0x4b5b23
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 2
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 0
call fcn.004c8bd0
mov dword [esp + 0x9c], esi
jmp 0x4b5e4c
lea edx, [esp + 0x74]
mov ecx, ebx
push edx
call fcn.004b4c90
push 1
lea ecx, [esp + 0x78]
call fcn.004c8bd0
cmp dword [ebx + 0x3ef0], ebp
je 0x4b5acb
mov eax, dword [esp + 0x58]
cmp eax, ebp
jne 0x4b5b4f
mov eax, 0x51fe08
mov ecx, dword [esp + 0x5c]
lea edi, [ebx + 0x3ee8]
push ecx
push ebp
push eax
mov ecx, edi
call fcn.004bb4b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b5bfc
mov eax, dword [esp + 0x68]
cmp eax, ebp
jne 0x4b5b7b
mov eax, 0x51fe08
mov edx, dword [esp + 0x6c]
mov ecx, edi
push edx
push ebp
push eax
call fcn.004bb4b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b5bfc
push 1
lea ecx, [esp + 0x44]
mov byte [ebx + 0x3f2c], 1
mov byte [esp + 0xa0], 3
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 2
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 0
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0xa0], esi
call fcn.004c8bd0
mov al, 1
jmp 0x4b62c7
mov ebp, dword [esp + 0x14]
mov edi, 0x5647e4
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 0x3f2c], 0
lea ebx, [ebp + 0x3f08]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5647e4
mov ecx, ebx
call fcn.004bb900
mov eax, dword [esp + 0x5c]
push 1
add esi, eax
lea eax, [esp + 0x16]
push esi
push eax
lea ecx, [ebp + 0x3ee8]
mov byte [esp + 0x1e], 0x22
call fcn.004bb4b0
mov ebp, eax
mov edi, 0x53f054
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push esi
push 0x53f054
add ecx, 0x3ee8
call fcn.004bb4b0
cmp ebp, 0xffffffff
jne 0x4b5cab
mov edi, 0x53f054
or ecx, ebp
xor eax, eax
dec esi
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x14]
not ecx
dec ecx
push ecx
push esi
push 0x53f054
lea ecx, [edx + 0x3ee8]
call fcn.004bb4b0
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4b5cb1
mov eax, dword [esp + 0x14]
mov ebp, dword [eax + 0x3ef0]
jmp 0x4b5cb1
cmp ebp, eax
jbe 0x4b5cb1
mov ebp, eax
mov ecx, dword [esp + 0x14]
sub ebp, esi
push ebp
lea edx, [esp + 0x78]
lea edi, [ecx + 0x3ef8]
push esi
push edx
mov ecx, edi
call fcn.004baf70
mov ecx, dword [0x51fe0c]
mov byte [esp + 0x9c], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.004bb1d0
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 4
call fcn.004c8bd0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4b5d06
mov eax, 0x51fe08
mov edx, dword [esp + 0x48]
push edx
push 0
push eax
mov eax, dword [esp + 0x20]
lea ebp, [eax + 0x3ee8]
mov ecx, ebp
call fcn.004bb4b0
mov esi, eax
cmp esi, 0xffffffff
je 0x4b5df5
mov edx, dword [esp + 0x48]
push 1
add esi, edx
lea ecx, [esp + 0x16]
push esi
push ecx
mov ecx, ebp
mov byte [esp + 0x1e], 0x3b
call fcn.004bb4b0
cmp eax, 0xffffffff
je 0x4b5df5
sub eax, esi
lea edx, [esp + 0x74]
push eax
push esi
push edx
mov ecx, edi
call fcn.004baf70
mov ecx, dword [0x51fe0c]
mov byte [esp + 0x9c], 6
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004bb1d0
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 4
call fcn.004c8bd0
lea edx, [esp + 0x1c]
push 0x20
lea eax, [esp + 0x78]
push edx
push eax
call fcn.004b5800
add esp, 0xc
lea ecx, [esp + 0x74]
push 1
call fcn.004c8bd0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x74]
push ecx
push edx
call fcn.004b5680
add esp, 8
lea ecx, [esp + 0x74]
push 1
call fcn.004c8bd0
mov edi, 0x53f058
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp + 0x3ed8]
push ecx
push eax
push 0x53f058
mov ecx, edx
call fcn.004bb4b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b5e5e
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xa0], 3
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 2
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.004c8bd0
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 0
call fcn.004c8bd0
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x34]
call fcn.004c8bd0
xor al, al
jmp 0x4b62c7
lea ecx, [ebp + 0x38]
add esi, 4
call fcn.004bd6a0
mov edi, str.MULTIPART_ALTERNATIVE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
push ecx
push str.MULTIPART_ALTERNATIVE
push eax
push 0
lea ecx, [esp + 0x2c]
call fcn.004bf590
test eax, eax
jne 0x4b5edc
push eax
lea edx, [esp + 0x34]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.004bad30
mov ecx, ebp
call fcn.004b9e30
mov byte [esp + 0x13], al
mov ecx, dword [esp + 0x44]
xor esi, esi
cmp ecx, esi
je 0x4b6203
mov al, byte [ecx - 1]
test al, al
je 0x4b61f9
cmp al, 0xff
je 0x4b61f9
dec al
mov byte [ecx - 1], al
jmp 0x4b6203
mov edi, str.MULTIPART_RELATED
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
push ecx
push str.MULTIPART_RELATED
push eax
push 0
lea ecx, [esp + 0x2c]
call fcn.004bf590
test eax, eax
jne 0x4b5f22
push eax
lea edx, [esp + 0x34]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.004bad30
mov ecx, ebp
call fcn.004ba2f0
jmp 0x4b5ead
mov edi, str.MULTIPART_MIXED
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
push ecx
push str.MULTIPART_MIXED
push eax
push 0
lea ecx, [esp + 0x2c]
call fcn.004bf590
test eax, eax
jne 0x4b5f83
mov cl, byte [esp + 0x30]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esi], cl
mov ecx, esi
call fcn.004c8bd0
mov edx, dword [0x51fe0c]
lea eax, [esp + 0x40]
push edx
push 0
push eax
mov ecx, esi
call fcn.004bb1d0
mov ecx, ebp
call fcn.004ba6e0
jmp 0x4b5ead
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4b5f90
mov eax, 0x51fe08
mov ecx, dword [esp + 0x38]
push ecx
push esi
lea ecx, [ebp + 0x3ed8]
push eax
mov dword [esp + 0x24], ecx
call fcn.004bb4b0
cmp eax, 0xffffffff
je 0x4b5eb1
mov ecx, dword [esp + 0x38]
lea esi, [eax + ecx + 2]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4b5fc4
mov eax, 0x51fe08
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push eax
call fcn.004bb4b0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
je 0x4b5eb1
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4b61d6
mov edi, str.TEXT_HTML
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.TEXT_HTML
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.004bf590
test eax, eax
jne 0x4b6061
mov ecx, dword [esp + 0x18]
sub ebp, esi
push ebp
lea eax, [esp + 0x88]
push esi
push eax
call fcn.004baf70
mov ecx, dword [0x51fe0c]
mov edx, dword [esp + 0x14]
push ecx
push 0
push eax
lea ecx, [edx + 0x3f18]
mov byte [esp + 0xa8], 7
call fcn.004bb1d0
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
call fcn.004c8bd0
jmp 0x4b60c9
mov ecx, dword [esp + 0x18]
sub ebp, esi
push ebp
lea eax, [esp + 0x78]
push esi
push eax
call fcn.004baf70
mov ecx, dword [0x51fe0c]
xor esi, esi
push ecx
push esi
push eax
mov ecx, ebx
mov byte [esp + 0xa8], 8
call fcn.004bb1d0
mov eax, dword [esp + 0x78]
mov byte [esp + 0x9c], 4
cmp eax, esi
je 0x4b60ba
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4b60b1
cmp al, 0xff
je 0x4b60b1
dec al
mov byte [ecx], al
jmp 0x4b60ba
push ecx
call fcn.004e3b62
add esp, 4
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov edi, 0x53f054
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [0x51fe0c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x4b6135
mov eax, dword [ebx + 8]
test eax, eax
jbe 0x4b6135
cmp esi, eax
jae 0x4b60f1
mov eax, esi
jmp 0x4b60f2
dec eax
mov esi, dword [ebx + 4]
push edi
add esi, eax
movsx edx, byte [esi]
push edx
push 0x53f054
call fcn.004d3860
add esp, 0xc
test eax, eax
jne 0x4b612a
cmp esi, dword [ebx + 4]
je 0x4b612f
movsx eax, byte [esi - 1]
dec esi
push edi
push eax
push 0x53f054
call fcn.004d3860
add esp, 0xc
test eax, eax
je 0x4b610d
sub esi, dword [ebx + 4]
jmp 0x4b6135
mov esi, dword [0x51fe0c]
cmp esi, 0xffffffff
je 0x4b61e3
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
lea edi, [esi - 1]
mov ebp, dword [ecx + 0x3f10]
mov dword [esp + 0x18], edi
sub ebp, esi
inc ebp
cmp eax, edi
jae 0x4b615e
call fcn.004e01d8
mov esi, dword [ebx + 4]
test esi, esi
je 0x4b6192
mov al, byte [esi - 1]
test al, al
je 0x4b6192
cmp al, 0xff
je 0x4b6192
push 1
mov ecx, ebx
call fcn.004c8bd0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, ebx
call fcn.004bb900
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 8]
sub eax, edi
cmp eax, ebp
jae 0x4b619d
mov ebp, eax
test ebp, ebp
jbe 0x4b61e3
mov edx, dword [ebx + 4]
sub eax, ebp
push eax
lea ecx, [edx + edi]
lea eax, [ecx + ebp]
push eax
push ecx
call fcn.004d2720
mov esi, dword [ebx + 8]
add esp, 0xc
sub esi, ebp
mov ecx, ebx
push 0
push esi
call fcn.004bb630
test al, al
je 0x4b61e3
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [ecx + esi], 0
jmp 0x4b61e3
mov ecx, dword [esp + 0x14]
push 0
push ebp
push esi
call fcn.004b62e0
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
inc eax
mov dword [esp + 0x50], eax
jmp 0x4b5f83
dec ecx
push ecx
call fcn.004e3b62
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x44], esi
cmp ecx, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
je 0x4b6233
mov al, byte [ecx - 1]
test al, al
je 0x4b6229
cmp al, 0xff
je 0x4b6229
dec al
mov byte [ecx - 1], al
jmp 0x4b6233
dec ecx
push ecx
call fcn.004e3b62
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x68], esi
cmp ecx, esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
je 0x4b6263
mov al, byte [ecx - 1]
test al, al
je 0x4b6259
cmp al, 0xff
je 0x4b6259
dec al
mov byte [ecx - 1], al
jmp 0x4b6263
dec ecx
push ecx
call fcn.004e3b62
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], esi
cmp ecx, esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
je 0x4b6293
mov al, byte [ecx - 1]
test al, al
je 0x4b6289
cmp al, 0xff
je 0x4b6289
dec al
mov byte [ecx - 1], al
jmp 0x4b6293
dec ecx
push ecx
call fcn.004e3b62
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], esi
cmp ecx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x4b62c3
mov al, byte [ecx - 1]
test al, al
je 0x4b62b9
cmp al, 0xff
je 0x4b62b9
dec al
mov byte [ecx - 1], al
jmp 0x4b62c3
dec ecx
push ecx
call fcn.004e3b62
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret